Hello,
I'm trying to run a PPML gravity model with country-pair and time fixed effects on a 10 year panel. The number of countries I am using (175/190) prevents me from using the -ppml command with my manually created dummies (matsize is limited to 11,000).
I discovered -poi2hdfe which I believe should function the same as -ppml if identically specified. I likewise thought -xtpqml should return identical results if the regression converges.
However I'm getting some strange results with -poi2hdfe which I can't figure out My code is the following. PT* are dummy variables. My "pairid" is my exporter*importer pairs. I am limiting my regression to just China (exporter == CHN)
In my mind, this should return a value for lgdp_exporter, as China's gdp fluctuated within my 10 year panel. However I get the following:
Why is lgdp_exporter omitted? This is the log gdp of my exporter, China in this case, but it IS time varying. I don't get this result when I use -xtpqml though the other regression coefficients are nearly identical. I can post the output of that command if it interests anyone.
Lastly,
doesn't appear to work for poi2hdfe. Is there any way to save residuals etc. in order to do a RESET, or Hausman test?
Edit: Solved picture issue below
SOLVED-PS: I checked the guide to see the best way to post output and couldn't find a better way than posting a picture. Am I missing something or is this standard?
I'm trying to run a PPML gravity model with country-pair and time fixed effects on a 10 year panel. The number of countries I am using (175/190) prevents me from using the -ppml command with my manually created dummies (matsize is limited to 11,000).
I discovered -poi2hdfe which I believe should function the same as -ppml if identically specified. I likewise thought -xtpqml should return identical results if the regression converges.
However I'm getting some strange results with -poi2hdfe which I can't figure out My code is the following. PT* are dummy variables. My "pairid" is my exporter*importer pairs. I am limiting my regression to just China (exporter == CHN)
Code:
poi2hdfe exports lgdp_exporter lgdp_importer PTgood_gov_exp PTgood_gov_imp PTbad_gov_exp PTbad_gov_imp if exporter == "CHN" , id1(pairid) id2(year)
Code:
Dropping 1 groups for pairid with a single observation Total Number of observations used in the regression -> 1855 Starting Estimation of coefficients 1 dif is -> 6244061 2 dif is -> 1.6021985 3 dif is -> 1.1138891 4 dif is -> 1.3918957 5 dif is -> .42605837 6 dif is -> .23716472 7 dif is -> .13974912 8 dif is -> .0732805 9 dif is -> .02254347 10 dif is -> .01082417 11 dif is -> .04080683 12 dif is -> .00028351 13 dif is -> 1.106e-06 14 dif is -> 2.070e-11 Coefficients converged after 14 reghdfe calls ******* Poisson Regression with Two High-Dimensional Fixed Effects ********** Number of obs = 1855 -------------------------------------------------------------------------------- | Robust exports | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------------+---------------------------------------------------------------- lgdp_exporter | 0 (omitted) lgdp_importer | .6324759 .0501047 12.62 0.000 .5342725 .7306793 PTgood_gov_exp | 0 (omitted) PTgood_gov_imp | .068497 .0281072 2.44 0.015 .013408 .1235861 PTbad_gov_exp | 0 (omitted) PTbad_gov_imp | -.2380663 .0470217 -5.06 0.000 -.3302272 -.1459055 --------------------------------------------------------------------------------
Why is lgdp_exporter omitted? This is the log gdp of my exporter, China in this case, but it IS time varying. I don't get this result when I use -xtpqml though the other regression coefficients are nearly identical. I can post the output of that command if it interests anyone.
Lastly,
Code:
estat
Edit: Solved picture issue below
SOLVED-PS: I checked the guide to see the best way to post output and couldn't find a better way than posting a picture. Am I missing something or is this standard?
Comment