Hello everyone,
I am running the synthetic control method on Stata 13 using the codes provided by the authors (website: http://web.stanford.edu/~jhain/synthpage.html) and the help synth command in Stata. I am however unable to perform the placebo tests for the study.
I have used the following code to run a loop for Abadie et al.'s dataset for their paper titled "Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California’s Tobacco Control Program", available on (http://web.stanford.edu/~jhain/Paper/ccs.pdf)
However, after running this loop, I am struggling to make the placebo graph as shown below. Could you please tell me how I might be able to run the placebo tests and produce the graph shown below? I believe this loop will produce synthetic controls for each unit, both treatment and control units and store the files. However, I am unsure on how to proceed after that.
I have tried to follow the steps mentioned in this post but with no success, http://www.stata.com/statalist/archi.../msg00540.html If I am required to combine the results file generated from these, could you please direct me on how to do so. As while trying to merge the files using the time variable it displays an error stating time variable is not unique.
Any help would be extremely useful.
Thank you,
Mridula Duggal
I am running the synthetic control method on Stata 13 using the codes provided by the authors (website: http://web.stanford.edu/~jhain/synthpage.html) and the help synth command in Stata. I am however unable to perform the placebo tests for the study.
I have used the following code to run a loop for Abadie et al.'s dataset for their paper titled "Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California’s Tobacco Control Program", available on (http://web.stanford.edu/~jhain/Paper/ccs.pdf)
Code:
tempname resmat forvalues i = 1/4 { synth cigsale retprice cigsale(1988) cigsale(1980) cigsale(1975) , trunit(`i') trperiod(1989) xperiod(1980(1)1988) keep(test`i') matrix `resmat' = nullmat(`resmat') \ e(RMSPE) local names `"`names' `"`i'"'"' } mat colnames `resmat' = "RMSPE" mat rownames `resmat' = `names' matlist `resmat' , row("Treated Unit")
I have tried to follow the steps mentioned in this post but with no success, http://www.stata.com/statalist/archi.../msg00540.html If I am required to combine the results file generated from these, could you please direct me on how to do so. As while trying to merge the files using the time variable it displays an error stating time variable is not unique.
Any help would be extremely useful.
Thank you,
Mridula Duggal
Comment