Friends,
I am using panel data set for individuals * years.
Individuals are treated at different years, ranging from 2000 to 2015.
I want to show the effect of being in the treatmentgroup (vs control) using all observations and a normalized time scale (t=-1 , t=0, t=+1).
The controll group has no treatmentperiod obviously, so it cannot have any values of t=-1, t=0 etc.
So is there a neat way of comparing those with treatment in 2007, to the controll in 2007 (but for every year), etc via regression?
using only the ones who have treatment in 2007:
reg Y i.treated##i.year
margins, dydx(treated) at(year = 2000 (1) 2015)) plot (xline(2007))
This produces pretty much what I want, but only for the group with treatment in 2007.
So I need some way of making one of each of these (for every treatment year) and combining them into one regression, to reduce errors and plots.
Thank you very much.
Related Posts with Multiple treatment years, Difference in differences
ldev following logistic inconsistent with estat gof and with Hosmer & LemeshowI am trying to reproduce Hosmer & Lemeshow's example (3rd edition, Table 4.16, p115). With 'logi…
Stata 17 Features Leaked Default precision changed to double regress now supports multiway clustering of standard errors Dof…
Omitted Dummy Variable on -spxtregress-Hello, I think I have a problem identifying issue after running random-effect panel data regression …
how to customize the location of legendI know the way of using position() to customize the location of legend, but sometimes the legend wil…
How to add the symmetry axis of the normal distribution when graphing the histograms by groups Code: * Example generated by -dataex-. To install: ssc install dataex clear input double(tenacio…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple treatment years, Difference in differences
Post a Comment