Hello Everyone,
So I want to run a version of parallel trends but with continuous treatment variable. i have treatment information at the province level and treatment dosage varies from 1 to 4. I have survey data from before the treatment and I want to assign provinces to placebo treatment groups before treatment based on the survey information post-treatment. My code is as follows :
the goal is that for observations before the treatment period, I can assign post-treatment dosage values of 1 to 4. So if the province was in group 1 pre-treatment and group 4 post-treat in the survey year 2014, how do I assign post-treatment value of 4 to observations in the pre-treat years. However, it makes no difference in the way the new placebo variable is recorded.
Thanks!
So I want to run a version of parallel trends but with continuous treatment variable. i have treatment information at the province level and treatment dosage varies from 1 to 4. I have survey data from before the treatment and I want to assign provinces to placebo treatment groups before treatment based on the survey information post-treatment. My code is as follows :
Code:
bys state province surveyyear : gen placebotreat =treat[_n+1]
Thanks!
Comment