nonabsdid - Visualize Heterogeneity-Robust Event Studies for Non-Absorbing
Treatments
Runs several heterogeneity-robust
difference-in-differences (DID) event-study estimators for
non-absorbing (i.e., treatment can switch on and off) binary
treatments through their own packages, harmonizes their output
onto a common time axis and tidy data structure, and overlays
them in a single 'ggplot2' panel for visual comparison.
Supported estimators include those provided by
'DIDmultiplegtDYN', 'PanelMatch', and 'fect', with an optional
naive two-way fixed-effects reference series via 'fixest'. A
single 'nabs_event_study()' wrapper runs any supported
estimator with a common interface; 'nabs_event_study_simple()'
provides a one-line front door for quick exploratory runs; the
S3 generic 'as_nabs_event_study()' coerces estimator output
into a tidy tibble with a stable schema; and
'nabs_event_plot()' overlays multiple methods on a single
'ggplot2' panel, with optional naive two-way fixed effects
drawn in a neutral color as a reference.