Hello,
I want to estimate the effect of childhood exposure to conflict intensity on adult height using a DID with continuous treatment.
I have used cohort groups to capture exposure to conflict at different ages, with 3 treated groups : age 0-5, age 6-11 and 12-17 at the onset of conflict (1996).
individuals between the ages of 18 and 33 at the beginning of conflict are the control groups.
Here is how I generate the gvar
gen first_treat=.
replace first_treat=0 if ages>18
replace first_treat=7 if ages>=1 & ages<=7
replace first_treat=13 if ages>=13 & ages<=18
Note ages correspond to the age of the individual, which I include as time.
runing the Callaway and Sant'Anna Diff in Diff
csdid mtheight conflict, time(ages) gvar(first_treat) method(dripw), The model cannot be identified since I have Units always treated.
I guess the problem is in the way I define the gvar. Is this the right way to generate the gvar variable in a repeated cross section dataset ?
Thank you in advance.
Emmanuel
I want to estimate the effect of childhood exposure to conflict intensity on adult height using a DID with continuous treatment.
I have used cohort groups to capture exposure to conflict at different ages, with 3 treated groups : age 0-5, age 6-11 and 12-17 at the onset of conflict (1996).
individuals between the ages of 18 and 33 at the beginning of conflict are the control groups.
Here is how I generate the gvar
gen first_treat=.
replace first_treat=0 if ages>18
replace first_treat=7 if ages>=1 & ages<=7
replace first_treat=13 if ages>=13 & ages<=18
Note ages correspond to the age of the individual, which I include as time.
runing the Callaway and Sant'Anna Diff in Diff
csdid mtheight conflict, time(ages) gvar(first_treat) method(dripw), The model cannot be identified since I have Units always treated.
I guess the problem is in the way I define the gvar. Is this the right way to generate the gvar variable in a repeated cross section dataset ?
Thank you in advance.
Emmanuel
Comment