Description Usage Arguments Details Author(s) References See Also

Visualizes estimation results of the generalized synthetic control method.

1 2 3 4 5 |

`x` |
a |

`type` |
a string that specifies the type of the plot. Must be one of the following: "gap" (plotting the average treatment effect on the treated; "raw" (plotting the raw data); "counterfactual", or "ct" for short, (plotting predicted Y(0)'s); "factors" (plotting estimated factors); "loadings" (plotting the distribution of estimated factor loadings); "missing" (plotting status of each unit at each time point). |

`xlim` |
a two-element numeric vector specifying the range of x-axis. When
class of time variable is string, must specify not original value but a
counting number e.g. |

`ylim` |
a two-element numeric vector specifying the range of y-axis. |

`xlab` |
a string indicating the label of the x-axis. |

`ylab` |
a string indicating the label of the y-axis. |

`legendOff` |
a logical flag controlling whether to show the legend. |

`raw` |
a string indicating whether or how raw data for the outcome
variable will be shown
in the "counterfactual" plot. Ignored if |

`main` |
a string that controls the title of the plot. If not supplied, no title will be shown. |

`nfactors` |
a positive integer that specifies the number of
factors to be shown. The maximum number if 4. Ignored if |

`id` |
a unit identifier of which the predicted counterfactual or
the difference between actual and predicted counterfactual is to be shown.
It can also be a vector specifying units to be plotted if |

`axis.adjust` |
a logical flag indicating whether to adjust labels on x-axis. Useful when class of time variable is string and data magnitude is large. |

`theme.bw` |
a logical flag indicating whether to use a black/white theme. |

`shade.post` |
a logical flag controlling whether to shade the post-treatment periods. |

`...` |
other argv. |

`plot.gsynth`

visualizes the raw data used by, or estimation
results obtained from, the generalized synthetic control method.

Yiqing Xu <yiqingxu@ucsd.edu>

Licheng Liu <liulch.16@sem.tsinghua.edu.cn>

Yiqing Xu. 2017. "Generalized Synthetic Control Method: Causal Inference with Interactive Fixed Effects Models." Political Analysis, Vol. 25, Iss. 1, January 2017, pp. 57-76. Available at: https://doi.org/10.1017/pan.2016.2.

See http://yiqingxu.org/software/gsynth/gsynth_examples.html for more detailed information.

`gsynth`

and `print.gsynth`

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.