r/econometrics • • 4d ago

[Feedback request] Single-exporter PPML gravity model for coffee exports – undergrad thesis

Hi all, I'm finishing my undergraduate economics thesis and would really appreciate a critical look at my gravity specification before I defend it.

Setup

  • Exporter: Nicaragua only (single exporter), product: coffee (HS 0901)
  • 91 importing partners that bought Nicaraguan coffee at least once, 2000–2024 (balanced panel of 2,275 obs)
  • 51.5% of observations are zeros, so I use PPML (Santos Silva & Tenreyro, 2006)
  • Data: UN Comtrade, World Bank/IMF GDP, CEPII distances

Specification (estimated in R with `glm(family = quasipoisson)`, SEs clustered by partner with `sandwich::vcovCL`; replicated with fixest and pyfixest)

Model 1: X_jt = exp(β1 ln GDP_jt + β2 ln Dist_j + β3 Lang_j + β4 Border_j + β5 FTA_jt + year FE)

Model 2: same + ln(partner's coffee imports from the rest of the world)_jt

No importer FE, because they would absorb distance, language and border. I acknowledge that multilateral resistance is only partly controlled.

Main results

  • Model 1 (n = 2,263): ln GDP 0.80, ln Dist −0.89, FTA 0.63 (p ≈ 0.07)
  • Model 2 (n = 2,123): ln partner coffee imports 0.97, ln GDP 0.04 (n.s.), ln Dist −1.09, FTA 0.19 (n.s.)
  • Same-sample check: the FTA drop is not due to the smaller sample
  • No separation detected (pyfixest)

I then compute trade potential as observed/predicted (model 2, 2020–2024 average) to rank markets with an unexploited gap. The top gaps are France, Canada, Germany, the Netherlands, Switzerland and the UK. Belgium is ~10× above its prediction, which I interpret as its role as a European coffee re-export hub.

Questions

  1. With a single exporter, is year FE + no importer FE defensible at undergrad level, or would you add something like a remoteness index?
  2. Is controlling for the partner's coffee imports from the rest of the world reasonable as a demand proxy, or is it too close to the dependent variable / endogenous?
  3. Is it fair to say the FTA effect is "not robust to controlling for demand", given that green coffee already enters most big markets duty-free?
  4. Is observed/predicted from an in-sample PPML a defensible way to identify "potential" markets? Anything I should caveat beyond the re-export issue?
  5. What would you attack first if you were on my committee?

Thanks a lot. Happy to share the code.

2 Upvotes

1 comment sorted by

1

u/Dismal_Guava_9687 3d ago

The first thing I would attack is the FTA coefficient: without importer fixed effects it is identified mostly across partners, so I would add a version with importer FE plus year FE that keeps only FTA (and GDP) and see whether the within-partner change survives, while keeping your current models for distance, language and border. Partner coffee imports from the rest of the world is a reasonable market size proxy, but it is a partner-year outcome that FTAs and income can move too, so present the GDP and FTA estimates in model 2 as conditional on demand rather than as the clean effects. Saying the FTA effect is not robust to controlling for demand is fair, and pointing out that green coffee already enters most large markets at zero MFN tariff gives the result an economic reason. For the potential ranking, observed over predicted is really a residual, so it also picks up roasting and re-export hubs, quality segments and long-term contracts, which matters for Germany and the Netherlands as much as for Belgium. Calling it unexplained gap rather than untapped potential would protect you in the defense.