Package: nonabsdid 0.3.2

Takuma Iwasaki
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'. 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.
Authors:
nonabsdid_0.3.2.tar.gz
nonabsdid_0.3.2.tar.gz(r-4.7-any)nonabsdid_0.3.2.tar.gz(r-4.6-any)
nonabsdid_0.3.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
nonabsdid/json (API)
NEWS
| # Install 'nonabsdid' in R: |
| install.packages('nonabsdid', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/takuma1102/nonabsdid/issues
Last updated from:95ee89b8c6. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 240 | ||
| source / vignettes | OK | 259 | ||
| linux-release-x86_64 | OK | 195 | ||
| wasm-release | OK | 192 |
Exports:as_nabs_event_studynabs_event_plotnabs_event_studynabs_event_study_simplenaive_twfe
Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigR6RColorBrewerrlangS7scalestibbletidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Coerce an estimator result to a tidy event-study tibble | as_nabs_event_study as_nabs_event_study.did_multiplegt_dyn as_nabs_event_study.fect as_nabs_event_study.fixest as_nabs_event_study.list as_nabs_event_study.nabs_event_study_result as_nabs_event_study.nabs_event_study_simple as_nabs_event_study.PanelEstimate |
| Plot one or more event-study tibbles on a single panel | nabs_event_plot |
| Run an event-study estimator with a unified interface | nabs_event_study |
| One-line exploratory front door for non-absorbing event studies | nabs_event_study_simple |
| Estimate a naive two-way fixed-effects (TWFE) event study | naive_twfe |