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
Marginal effect with empty resultsHello, for model Code: (OLS model)X= Shock_dummy_variable + Firm Fixed effect + year Fixed effe…
Plotting dependent variable mean besides coefficients using esttabI am using the user-written esttab command from SSC to generate table output. I am trying to plot a …
DID with fixed effects – problem with noestimcheck?Dear Statalisters, I am estimating a difference-in-difference with fixed effects. I use the nostimc…
Stata Probit Model Interaction Term InterpretationHello everyone, for my thesis i am currently investigating the effects of solid waste (msw_reg) on …
Data Setting: dropping empty variables in a quickly wayGood morning to everyone, i was wondering if there is a command that tells Stata to drop variables i…
Subscribe to:
Post Comments (Atom)
0 Response to Gravity model - fixed effects problems
Post a Comment