I have panel dataset that observes individuals of organisations over a 16 year period. During the 16 year period, some organisation undergoes a treatment. Currently, i have a marker (tretament_flag) that indicate whether the organisation is treated or no. But it only indicates (takes value 1) only in the year of treatment. But I want to extend the treatment_flag further to take value 1 after the treatment has occurred. Currently, these values are shown as missing.
I tried:
sort organisation year
by organisation year: replace treatment_flag = treatment_flag[1]
but this doesn't seem to be working
Any help would be much appreciated
Best
Danula
I tried:
sort organisation year
by organisation year: replace treatment_flag = treatment_flag[1]
but this doesn't seem to be working
Any help would be much appreciated
Best
Danula
Comment