The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

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 over time, allowing treatment reversal) binary treatments through their respective 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'. The underlying methods are respectively described in Clement de Chaisemartin and Xavier D'Haultfoeuille. "Difference-in-Differences Estimators of Intertemporal Treatment Effects." The Review of Economics and Statistics (2026) <doi:10.1162/rest_a_01414>, Kosuke Imai, In Song Kim, and Erik H. Wang. "Matching methods for causal inference with time‐series cross‐sectional data." American Journal of Political Science 67.3 (2023) <doi:10.1111/ajps.12685>, Licheng Liu, Ye Wang, and Yiqing Xu. "A practical guide to counterfactual estimators for causal inference with time‐series cross‐sectional data." American Journal of Political Science 68.1 (2024) <doi:10.1111/ajps.12723>, and Laurent R. Bergé, Kyle Butts, and Grant McDermott. "Fast and user-friendly econometrics estimations: The R package 'fixest'." arXiv preprint (2026) <doi:10.48550/arXiv.2601.21749>. 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 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.

Version: 0.4.1
Depends: R (≥ 4.1.0)
Imports: cli, dplyr, ggplot2, rlang, stats, tibble
Suggests: DIDmultiplegtDYN, polars, PanelMatch, fect, fixest, haven, knitr, rmarkdown, testthat (≥ 3.0.0), vdiffr, withr
Published: 2026-06-23
DOI: 10.32614/CRAN.package.nonabsdid
Author: Takuma Iwasaki ORCID iD [aut, cre]
Maintainer: Takuma Iwasaki <iwasakit at stanford.edu>
BugReports: https://github.com/takuma1102/nonabsdid/issues
License: MIT + file LICENSE
URL: https://github.com/takuma1102/nonabsdid, https://takuma1102.github.io/nonabsdid/
NeedsCompilation: no
Additional_repositories: https://rpolars.r-universe.dev
Citation: nonabsdid citation info
Materials: README, NEWS
CRAN checks: nonabsdid results

Documentation:

Reference manual: nonabsdid.html , nonabsdid.pdf
Vignettes: Cohort-by-time effect matrices and heatmaps (source, R code)
Getting started with nonabsdid (source, R code)
nonabsdid for Stata users (source, R code)

Downloads:

Package source: nonabsdid_0.4.1.tar.gz
Windows binaries: r-devel: nonabsdid_0.4.1.zip, r-release: nonabsdid_0.4.1.zip, r-oldrel: nonabsdid_0.4.1.zip
macOS binaries: r-release (arm64): nonabsdid_0.4.1.tgz, r-oldrel (arm64): nonabsdid_0.4.1.tgz, r-release (x86_64): nonabsdid_0.4.1.tgz, r-oldrel (x86_64): nonabsdid_0.4.1.tgz
Old sources: nonabsdid archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=nonabsdid to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.