Learn R Programming

scmSpillover (version 0.1.1)

qplot_effects: Quick plot for treatment effects with confidence intervals

Description

Quick plot for treatment effects with confidence intervals

Usage

qplot_effects(
  result,
  start_year = NULL,
  unit_name = "Treated Unit",
  outcome_label = "Outcome",
  show_ci = TRUE,
  show_vanilla = FALSE
)

Value

ggplot object (invisibly)

Arguments

result

Output from run_scm_spillover

start_year

First year of treatment period

unit_name

Name of treated unit (default "Treated Unit")

outcome_label

Label for outcome variable (default "Outcome")

show_ci

Logical, whether to show confidence bands (default TRUE)

show_vanilla

Logical, whether to show vanilla SCM comparison (default FALSE)