powered by
Plot treatment effects only
plot_effects( result, start_year = NULL, unit_name = "Treated Unit", outcome_label = "Outcome", show_ci = TRUE, show_vanilla = FALSE )
A ggplot object that can be further customized or saved.
Output from run_scm_spillover
First year of treatment period
Name of treated unit (default "Treated Unit")
Label for outcome variable (default "Outcome")
Logical, whether to show confidence bands (default TRUE)
Logical, whether to show vanilla SCM comparison (default FALSE)
# \donttest{ data <- generate_test_data() result <- run_scm_spillover(data, treatment_start = 20, verbose = FALSE) p <- plot_effects(result) # }
Run the code above in your browser using DataLab