Plot results of event_study()

plot_event_study(out, seperate = TRUE, horizon = NULL)

Arguments

out

Tibble from event_study()

seperate

Logical. Should the estimators be on seperate plots? Default is TRUE.

horizon

Numeric. Vector of length 2. First element is min and second element is max of event_time to plot

Value

ggplot object that can be fully customized

Examples

data(df_het, package = "did2s") out = event_study( data = df_het, yname = "dep_var", idname = "unit", tname = "year", gname = "g" )
#> Estimating TWFE Model
#> Estimating using Gardner (2021)
#> Estimating using Callaway and Sant'Anna (2020)
#> Estimating using Sun and Abraham (2020)
#> Estimating using Borusyak, Jaravel, Spiess (2021)
#> Estimatng using Roth and Sant'Anna (2021)
plot_event_study(out)