Skip to contents

Returns the event-study coefficient table of an event_study() result as a plain tibble — the format expected by modelsummary::modelsummary() and other broom-aware tooling. The baseline row (zero by construction) is included; drop it with x[!x$is_baseline, ] beforehand if undesired.

Usage

# S3 method for class 'es_result'
tidy(x, ...)

Arguments

x

An es_result object.

...

Unused; kept for compatibility with the broom::tidy() generic.

Value

A tibble with columns term, estimate, std.error, statistic, p.value, relative_time, is_baseline, and the conf_low_XX/conf_high_XX pairs of the originating call.

Examples

if (FALSE) { # \dontrun{
res <- event_study(df, outcome = y, time = year, timing = g,
                   unit = id, estimator = "cs")
broom::tidy(res)
} # }