Skip to contents

tidy() returns the period-by-period event-study table (one row per time period, with the \(\hat\lambda\)-aligned point estimate, bootstrap standard error, and both normal-approximation and percentile confidence intervals). glance() returns a one-row summary for the overall ATT alongside the valid and discarded bootstrap replication counts.

Usage

# S3 method for class 'sdid_event_study'
tidy(x, ci_type = NULL, conf.int = TRUE, ...)

# S3 method for class 'sdid_event_study'
glance(x, ci_type = NULL, ...)

Arguments

x

An sdid_event_study object returned by sdid_event_study().

ci_type

Optional override ("normal" or "percentile") selecting which confidence interval populates conf.low and conf.high. Defaults to x$ci_type. Both ci_norm_lower/ci_norm_upper and ci_pct_lower/ci_pct_upper are always included as well.

conf.int

Logical; include conf.low/conf.high columns (default TRUE).

...

Unused.

Value

For tidy(), a data.frame with one row per period and columns time, event_time, period, estimate, std.error, conf.low, conf.high, ci_norm_lower, ci_norm_upper, ci_pct_lower, ci_pct_upper. For glance(), a one-row data.frame with columns estimate, std.error, p.value, conf.low, conf.high, ci_norm_lower, ci_norm_upper, ci_pct_lower, ci_pct_upper, ci_type, level, clustered, n_clusters, n_treated, n_controls, T_pre, T_post, n_boot, n_boot_valid, n_boot_dropped.