| gaps.plot {Synth} | R Documentation |
This function plots the gaps in the trajectories of the outcome variable for the treated unit and the
synthetic control group constructed by synth and dataprep. The user can specifify whether
the whole time period or only the pre-treatment period should be plotted.
gaps.plot(synth.res = NA,
dataprep.res = NA,
Ylab = c("Title"),
Xlab = c("Time"),
Main = c("Gaps: Treated - Synthetic"),
tr.intake = NA,
Ylim = NA,
Z.plot = FALSE)
synth.res |
Output list created by synth. |
dataprep.res |
Output list created by dataprep. |
tr.intake |
Optional scalar to indicate the time of treatment intake with a vertical line. |
Ylab |
Optional label for Y axis. |
Xlab |
Optional label for X axis. |
Ylim |
Optional Ylim. |
Main |
Optional main title. |
Z.plot |
Flag. If true, only pretreatment period is plotted. |
The trajectory of the outcome for the synthetic control group is calculated as: dataprep.res$Y0plot %*% synth.res$solution.w. You can use this calculation to construct custom made plots.
The plot of trajectories.
NA
Alexis Diamond adiamond@fas.harvard.edu Jens Hainmueller jhainm@fas.harvard.edu
Abadie, A. and Gardeazabal, J. (2003) Economic Costs of Conflict: A Case Study of the Basque Country American Economic Review 93 (1) 113–132 http://ksghome.harvard.edu/~.aabadie.academic.ksg/ecc.pdf
Abadie, A., Diamond, A., Hainmueller, J. (2007) Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California's Tobacco Control Program NBER Technical Working Paper no 335 http://www.people.fas.harvard.edu/~jhainm/
gaps.plot,synth.plot,dataprep,synth.tab
##---- NA ----