Hi,
I am trying to use the synthetic control method to run a difference in difference model.
I know that the synth command only works when there is only one treatment unit but I have multiple treatment units and I am struggling to combine them into one, without obtaining the error "repeated time values within panel - r(451)" when running the xtset command.
Each observation in my dataset represents an individual, each labelled id (so each observation has a different value for id).
Currently I have used xtset id month.
The treatment affected two regions in which there are thousands of id observations so there are no unique combinations of region and month, since several observations of id have the same region and month values.
This means that I cannot run the command "xtset region month" without obtaining the error "repeated time values within panel - r(451)".
How can I collate my observations together such that I can set a valid panel identifier, and then run the synth command with only one treatment unit?
I hope this makes sense. Any help would be hugely appreciated!
Many thanks.
I am trying to use the synthetic control method to run a difference in difference model.
I know that the synth command only works when there is only one treatment unit but I have multiple treatment units and I am struggling to combine them into one, without obtaining the error "repeated time values within panel - r(451)" when running the xtset command.
Each observation in my dataset represents an individual, each labelled id (so each observation has a different value for id).
Currently I have used xtset id month.
The treatment affected two regions in which there are thousands of id observations so there are no unique combinations of region and month, since several observations of id have the same region and month values.
This means that I cannot run the command "xtset region month" without obtaining the error "repeated time values within panel - r(451)".
How can I collate my observations together such that I can set a valid panel identifier, and then run the synth command with only one treatment unit?
I hope this makes sense. Any help would be hugely appreciated!
Many thanks.
Comment