Skip to contents

Run an estimator

Fit one of the supported heterogeneity-robust estimators (DCDH, PanelMatch, fect’s IFE/FE/MC) through a single unified interface, or run several at once for a quick first look.

nabs_event_study()
Run an event-study estimator with a unified interface
nabs_event_study_simple()
One-line exploratory front door for non-absorbing event studies

Naive reference

A deliberately unsophisticated two-way fixed-effects event study, drawn as a neutral reference against the heterogeneity-robust estimators.

naive_twfe()
Estimate a naive two-way fixed-effects (TWFE) event study

Tidy and plot

Coerce native estimator output onto a common tidy schema, then overlay any combination of methods on a single ggplot2 panel.

as_nabs_event_study()
Coerce an estimator result to a tidy event-study tibble
nabs_event_plot()
Plot one or more event-study tibbles on a single panel

Cohort matrix (experimental)

Keep the onset cohort as a second dimension and draw cohort-by-time effect heatmaps. Supports DCDH and the fect family; PanelMatch is intentionally omitted (see the article).

nabs_effect_cells()
Fit an estimator and return cohort-by-time effect cells
as_nabs_effect_cells()
Coerce an estimator result to a tidy cohort-by-time effect-cell tibble
plot_effect_matrix()
Plot a cohort-by-time effect matrix as a heatmap
aggregate_effects()
Collapse effect cells back onto an event-study path

Stata interoperability

Read panels from, and write tidy results back to, Stata .dta files.

nabs_read_dta()
Read a Stata .dta file into an analysis-ready data frame
nabs_write_dta()
Write event-study results to a Stata .dta file

Package overview

nonabsdid nonabsdid-package
nonabsdid: Side-by-Side Event-Study Comparison for Heterogeneous DiD