I am using a panel dataset, how can I create a new variable that is equal to 1 if UNITID ever changed for var1? (And =0 if the UNITID never changed for var1)
Also, how can I create a new variable that is equal to the "Year" that the change occurred for each UNITID that changed?
I am trying to create a difference in difference regression, but my Stata knowledge is very limited. thank you in advance.
Also, how can I create a new variable that is equal to the "Year" that the change occurred for each UNITID that changed?
I am trying to create a difference in difference regression, but my Stata knowledge is very limited. thank you in advance.
Comment