Hello Stata users,
I'm using a gravity model in order to estimate the effects of being part of ASEAN by using a dummy on trade flows.
My basic regression which works perfectly is : reg lFlow lGDP_exp lGDP_imp lDistw Comlang Contig Curcol Evercol GATT ASEAN.
After that I want to include fixed effects by country pair and country-year.
First, for the country-pair fixed effects, my command is :
egen countrypair=group (Exporter Importer)
xtset countrypair year
xtreg lFlow lGDP_exp lGDP_imp lDistw Comlang Contig Curcol Evercol GATT ASEAN, fe which gives me a positive coefficient for ASEAN which is intuitively normal.
The problem is when I want to include fixed effects for country-years.
I have:
egen exporters_year = group(Exporter year)
egen importers_year = group(Importer year)
reghdfe lFlow lGDP_exp lGDP_imp lDistw Comlang Contig Curcol Evercol GATT ASEAN, absorb (exporters_year importers_year) and then I get a negative result for my dummy ASEAN. How is it possible that I have coefficients that have a different sign for the two fixed effects? Are my command incorrect? Or do I need to mix all fixed effects in one equation and not separate them? Because when I make the regression with all my fixed effects, the coefficient is also positive.
Thank you in advance for your help,
Ben.
Related Posts with Gravity model - fixed effects problems
Stata 15:15 …
skewness from moments2 into dataHi, I am trying to use "moments2" and use the skewness, kurtosis, and SD as my data. The following …
Outliers, didn't solve Hi everybody I have the model below. I found that I have one outlier that has influence on the coef…
Population Census Data: Variable Preparation for PCA with sample weightsHello all, I am new to the Stata Community and working on the 2016 Canadian census of population mi…
Stata 15: Default location to open a file or folder in windowsAs far as I remember, Stata versions prior to 15 would open the last accessed location when I tried …
Subscribe to:
Post Comments (Atom)
0 Response to Gravity model - fixed effects problems
Post a Comment