Dear Statalist,
I have a question about the result with the command csdid (I use csdid2 instead).
I am trying to estimate the effect of the onset of the program that is providing vouchers in school on the individual's enrollment.
The dataset is cross-sectional and I am using the year when the individuals turn 6 years old as a time variation, and then the treatment variable is whether the program is adopted or not in their community (1 school in 1 community). So, I use the first year that program was introduced in each community.
I got the result as follows
Then, I got feedback from my supervisor that I need to control for municipality-year fixed effects additionally. So I try the the following code adding the interaction term of year when individuals' age = 6 and dummies municipality code (I understand this is to control for linear trends, is it right?)
Then, the result is exactly the same.
Do you have any idea what makes them have the same results?
Interestingly, the two way fixed effects results are different with and without municipality code.
where postf_0 is post treatment dummies taking 1 if schyear > firstprogramyr
Can you provide any hint on what I am missing here?
I have a question about the result with the command csdid (I use csdid2 instead).
I am trying to estimate the effect of the onset of the program that is providing vouchers in school on the individual's enrollment.
The dataset is cross-sectional and I am using the year when the individuals turn 6 years old as a time variation, and then the treatment variable is whether the program is adopted or not in their community (1 school in 1 community). So, I use the first year that program was introduced in each community.
Code:
csdid2 yrs female, time(schyear) gvar(firstprogramyr) cluster(communitycode) method(dripw) estat simple
Code:
Coefficient Std. err. z P>z [95% conf. interval] SimpleATT -.8979326 .2318987 -3.87 0.000 -1.352446 -.4434195
Then, I got feedback from my supervisor that I need to control for municipality-year fixed effects additionally. So I try the the following code adding the interaction term of year when individuals' age = 6 and dummies municipality code (I understand this is to control for linear trends, is it right?)
Code:
csdid2 yrs i.schyear#i.municipalitycode , time(schyear) gvar(firstprogramyr) cluster(communitycode) method(dripw) estat
Do you have any idea what makes them have the same results?
Interestingly, the two way fixed effects results are different with and without municipality code.
where postf_0 is post treatment dummies taking 1 if schyear > firstprogramyr
Code:
reghdfe yrs female i.postf_0 , cluster(communitycode) a(communitycode schyear) reghdfe yrs female i.postf_0 , cluster(communitycode) a(communitycode schyear i.schyear#i.municipalitycode)
Can you provide any hint on what I am missing here?
Comment