Dear all,
I am trying to run a difference-in-difference fixed-effects model. The challenge here is that I have MULTIPLE periods and treatment did not take place in a particular year for all units. Whenever I use one of the commands below, the treated#post coefficient, which I am interested in, is omitted.
xtreg outcome i.treated##i.post i.year, fe vce(cluster unit)
xtreg outcome i.treated#i.post i.year, fe vce(cluster unit)
The only way to bring it back is to interact i.year with i.treated instead of i.post with i.treated (see below).
xtreg outcome i.treated##i.year, fe vce(cluster unit)
But if I do so, I do not account for the exact year in which a unit is treated but rather that a unit is generally treated or not. I do not think this is acceptable.
The other alternative I could think of is to use diff-in-diff random effects instead of diff-in-diff fixed effects, as follows:
xtreg outcome i.treated#i.post, re vce(cluster unit)
But I think fixed effects better reflect my data.
Any advice will be highly appreciated, thanks in advance.
Best regards,
Amira
Related Posts with Difference-in-difference fixed effects with multiple periods
Using the character ehat_t in the y-axisDear all, I hope you are all keeping well! I want to use the character ehat_t in my y-axis So I t…
How should I fix this error in my scatter plot?Hello, I've been trying to make a more advanced scatter plot and have managed to figure out the bit…
Negative statistic chi2 after hausman testHello everyone, I have panel data and my dependent variable is a dummy variable. N=801 (individuals)…
Stata vs Mplus for LPA?Dear researchers, I am trying to conduct Latent Profile Analysis but wonder conducting it with Stat…
Controlling for differences caused by occupationHello - I am new to the world of econometrics and am working on a small research paper. I am trying …
Subscribe to:
Post Comments (Atom)
0 Response to Difference-in-difference fixed effects with multiple periods
Post a Comment