Hi, I am trying to create both treatment and control variables based on a set of conditions. My question is how a policy that came in on the 3rd of March may affect the wage rate of an individual.
I created a pre-variable. Pre == 1 if the date is before 3rd March.
I also created a post variable. Post == 1 if the date is after 3rd March.
I'm trying to create the treat and control variable based on the individual's wage rate and pre/post variable.
If the individual earns less than $3000 before the 3rd march, then treat ==1. I did it the following wat
generate treat = 0
replace treat=1 if wagerate<3000 & pre==1
Now I'm trying to create the control variable but I'm slightly struggling. The control group should be those earning above $3000 before the pre period and should not be affected by the policy. Therefore I tried the following
generate control = 0
replace control=1 if wagerate>3000 & pre==1 & wagerate => 3000 in post=1
It is not working fo the control and was wondering if there is a better way to do this. Thank you
I created a pre-variable. Pre == 1 if the date is before 3rd March.
I also created a post variable. Post == 1 if the date is after 3rd March.
I'm trying to create the treat and control variable based on the individual's wage rate and pre/post variable.
If the individual earns less than $3000 before the 3rd march, then treat ==1. I did it the following wat
generate treat = 0
replace treat=1 if wagerate<3000 & pre==1
Now I'm trying to create the control variable but I'm slightly struggling. The control group should be those earning above $3000 before the pre period and should not be affected by the policy. Therefore I tried the following
generate control = 0
replace control=1 if wagerate>3000 & pre==1 & wagerate => 3000 in post=1
It is not working fo the control and was wondering if there is a better way to do this. Thank you
Comment