powered by
Generate all plots for SCM analysis
plot_all( result, start_year = NULL, unit_name = "Treated Unit", outcome_label = "Outcome", treatment_label = "Treatment", show_ci = TRUE )
A list containing three ggplot objects (p1, p2, p3), returned invisibly. Called primarily for side effects (displaying plots).
Output from run_scm_spillover
First year of treatment period
Name of treated unit (default "Treated Unit")
Label for outcome variable (default "Outcome")
Label for treatment (default "Treatment")
Logical, whether to show confidence bands (default TRUE)
if (FALSE) { data <- generate_test_data() result <- run_scm_spillover(data, treatment_start = 20) plots <- plot_all(result) }
Run the code above in your browser using DataLab