Skip to contents

Estimation

Estimate event-study curves, aggregated ATT, and basic two-way FE DiD.

run_es()
Event Study Estimation for Panel Data
calc_att()
Compute ATT Aggregations for Staggered Adoption Designs
run_did()
Run a basic two-way fixed-effects DiD model

Sensitivity analysis

Robust inference under violations of parallel trends.

honest_sensitivity()
Honest sensitivity analysis for parallel-trends violations

Visualization

Plot event studies, ATT(g,t) matrices, and sensitivity results.

plot_es()
Plot event-study results with ribbons or error bars
plot_es_interactive()
Interactive event-study plot with hover details
plot_att_gt() autoplot(<att_gt_result>)
Plot the ATT(g,t) matrix from a Callaway-Sant'Anna event study
plot_honest() autoplot(<honest_result>)
Plot a honest sensitivity analysis
plot_contamination_weights()
Plot Contamination Weights as a Tile Heatmap

Diagnostics

Contamination-weight diagnostics for the Sun-Abraham estimator.

compute_contamination_weights()
Contamination Weights for TWFE Event-Study Coefficients (Sun-Abraham 2021)

S3 methods

broom and ggplot2 integration for result objects.

autoplot(<es_result>)
Autoplot for event-study results
tidy(<did_result>)
Tidy a did_result object
glance.did_result()
Glance at a did_result object