• I've created dummy variables for treatment and comparison group (treat1) and for the Minimum Wage Increase Period(NMW). I wanted to create a dummy variable that takes all the observations for the ID variable in all the years we're looking at, not just the NMW period.
  • So I wanted to create pp=1 for when treat1 =0/1 and NMW=1 for sa_id for three years prior to Min Wage increase and three years of the increase i.e. 2009-2011 and 2012-2014.
  • How would I go about doing this?
I would be very grateful for any help!