Hi Everyone!
I am trying to use the difference in differences model where I am struggling at the moment and would really appreciate your help!
I have read around and I think I have understood how to do a difference -in-differences regression analysis in STATA by looking at your posts on the Statalist forum.
I am looking the effect of the Euro on trade in Europe. I have a control group and a treatment group ("pairEURO" equal to 1 if they adopted the euro in 1999)
1) My TREAT variable gets omitted as it is constant over time but my POST variable does not. Does this mean I made a mistake? and did not correctly coded in your data?
I believe that it doesn't get omitted as it is not equal to 1 until the "Policy" is implemented, hence STATA did not omitted it, am I right?
2) It is better to do fixed effects than OLS because it take into account for effects such as "Distance" and "CommonLanguage" which are constant over time, am I correct? (The treatment dummy will also get omitted as it is fixed over time)
3)Is this the correct way of proceeding? And I am interested in the "INTERACTION" variable coefficient which I then do e^(Coefficient - 1) * 100 to get the percentage effect?
I am using STATA 14
I hope I am clear!
Thank you very much in advance!
Best Regards,
Joseph
I am trying to use the difference in differences model where I am struggling at the moment and would really appreciate your help!
I have read around and I think I have understood how to do a difference -in-differences regression analysis in STATA by looking at your posts on the Statalist forum.
I am looking the effect of the Euro on trade in Europe. I have a control group and a treatment group ("pairEURO" equal to 1 if they adopted the euro in 1999)
Code:
gen TREATMENT = if(pairEURO =1) gen POST = 1 if(year > 1999) gen INTERACTION = treatment*post xtset CountryPair YEAR xtreg lnTradeFlow CommonLanguage lnPopulationSizej lnPopulationSizei lnGDPj lnGDPi lnDistance TREATMENT POST INTERACTION i.year, fe robust
I believe that it doesn't get omitted as it is not equal to 1 until the "Policy" is implemented, hence STATA did not omitted it, am I right?
2) It is better to do fixed effects than OLS because it take into account for effects such as "Distance" and "CommonLanguage" which are constant over time, am I correct? (The treatment dummy will also get omitted as it is fixed over time)
3)Is this the correct way of proceeding? And I am interested in the "INTERACTION" variable coefficient which I then do e^(Coefficient - 1) * 100 to get the percentage effect?
I am using STATA 14
I hope I am clear!

Best Regards,
Joseph
Comment