I am studying the determinants of asset trade flows across 40ish countries, from 1997 to 2015, using the gravity equation. Following Piermartini and Yotov's Estimating Trade Policy Effects with Structural Gravity (2016) paper, I wish to use the PPML estimator instead of OLS to deal with the various problems they highlight.
In Stata 14 I have tried the following code:
Code:
ppml asset_flows ln_distw contig comlang_off common_leg eu i.o_country#i.year i.d_country#i.year
Stata gives back the error: factor variables and time-series operators not allowed
r(101);
If instead I try:
Code:
ppmlhdfe ln_asset_flows ln_distw comlang_off eu common_leg contig, absorb(i.o_country#i.year i.d_country#i.year)
1) What is the error I get with ppml? I looked at other discussions but I can't seem to find a way to solve that applies to my case.
2) What is the difference between ppml and ppmlhdfe? It is my understanding there isn't ay from an econometric point of view.
3) If there isn't any difference between the two, how can I explain the fact that ppmlhdfe does not give me an error message?
Thank you for your help,
Matteo
0 Response to ppml vs ppmlhdfe for structural gravity estimmation
Post a Comment