I am trying to run a DID and testing the parallel trends assumption. I have followed the explanation in this paper: https://mpra.ub.uni-muenchen.de/1193...per_119367.pdf
Is my code correct?
My specific questions:
1. Should I use treat or treatpost in the regression?
2. The treatment was given at the state level (some states received the treatment), but the data and outcome variable of interest is at the individual level. I can't include individual fixed effects, because the dataset is huge. Is it ok to have household fixed effects (in the absorb option) as shown above?
3. I get the following message: is this to be expected? Essentially only one coefficient remains in the pre-period (pre=0, treat =1). I am testing if this coefficient is different from zero. For parallel trends to hold, the coefficient should not be different from zero.
note: 1.pre#0b.treat omitted because of collinearity
note: 1.pre#1.treat omitted because of collinearity
note: 1.post#0b.treat omitted because of collinearity
note: 1.post#1.treat omitted because of collinearity
Is my code correct?
Code:
* "treat" identifies treated units. Treatment was given in round 14 gen treatpost= treat*(round>=14) gen time_to_treat= round - 14 gen pre=1 if time_to_treat<=-2 replace pre=0 if time_to_treat>-2 gen post=1 if time_to_treat>=0 replace post = 0 if time_to_treat <0 reghdfe y pre#treat post#treat, absorb(hh_id i.round) vce(cluster state)
1. Should I use treat or treatpost in the regression?
2. The treatment was given at the state level (some states received the treatment), but the data and outcome variable of interest is at the individual level. I can't include individual fixed effects, because the dataset is huge. Is it ok to have household fixed effects (in the absorb option) as shown above?
3. I get the following message: is this to be expected? Essentially only one coefficient remains in the pre-period (pre=0, treat =1). I am testing if this coefficient is different from zero. For parallel trends to hold, the coefficient should not be different from zero.
note: 1.pre#0b.treat omitted because of collinearity
note: 1.pre#1.treat omitted because of collinearity
note: 1.post#0b.treat omitted because of collinearity
note: 1.post#1.treat omitted because of collinearity
Comment