Hello everyone,
I am relatively new to Stata and I am trying to create a dummy variable to identify the treated group and the control group.
My dataset contains two observations for every id, one in 2014 and one in 2016 (identified by the dummy year=1 if the year is 2016). The Law I'm trying to analyze was valid only for firms with more than 15 employees BEFORE 2016: this subset of firms is the treated group. I have used:
replace treated=1 if dimaz>2 & year16==0
where dimaz is the number of employees (2 is just the range)
But the firm should be considered treated also in year 2016!
Which command should I use?
Thank you!
0 Response to treated group with if condition
Post a Comment