R/plot.R
synthdid_units_plot.Rd
Plots unit by unit difference-in-differences. Dot size indicates the weights omega_i used in the average that yields our treatment effect estimate. This estimate and endpoints of a 95% CI are plotted as horizontal lines. Requires ggplot2
synthdid_units_plot( estimates, negligible.threshold = 0.001, negligible.alpha = 0.3, se.method = "jackknife", units = NULL )
estimates | as output by synthdid_estimate. Can be a single one or a list of them. |
---|---|
negligible.threshold | Unit weight threshold below which units are plotted as small, transparent xs instead of circles. Defaults to .001. |
negligible.alpha | Determines transparency of those xs. |
se.method | the method used to calculate standard errors for the CI. See vcov.synthdid_estimate. Defaults to 'jackknife' for speed. If 'none', don't plot a CI. |
units | a list of control units --- elements of rownames(Y) --- to plot differences for. Defaults to NULL, meaning all of them. |