Dear Statalists,
I have problem with did regression with more than two periods of treatment in panel data. Firstly i think that i can't understand the use of this method: if we want to check the heterogeneity across years we just use a FE model and control of the dummy of treatment, if we want to see the differences in target variable across and between we use a RE with the variable treatment as an independent variable. In multiple time periods of treatment why we should use did approach? Moreover, how i should create the dummy variable time of treatment when i generated treatment=1 when a company "had a treatment" for at least one year. So in groups all companies have value=1 for the variable treatment (or all have treat=0) whereas the treatment started in specific times between companies?
For example:
y= a+b*time+b2treat+dtime*treat+e
for the first company i have four years observations, treat=1 for all years and the treatment started in the 4th year. time is then the vector (0,0,0,1)?
Furthermore i should also add year dummies in the model?
Thank you very much
I have problem with did regression with more than two periods of treatment in panel data. Firstly i think that i can't understand the use of this method: if we want to check the heterogeneity across years we just use a FE model and control of the dummy of treatment, if we want to see the differences in target variable across and between we use a RE with the variable treatment as an independent variable. In multiple time periods of treatment why we should use did approach? Moreover, how i should create the dummy variable time of treatment when i generated treatment=1 when a company "had a treatment" for at least one year. So in groups all companies have value=1 for the variable treatment (or all have treat=0) whereas the treatment started in specific times between companies?
For example:
y= a+b*time+b2treat+dtime*treat+e
for the first company i have four years observations, treat=1 for all years and the treatment started in the 4th year. time is then the vector (0,0,0,1)?
Furthermore i should also add year dummies in the model?
Thank you very much
Comment