Skip to content

nonabsdid

0.4.1Package record

Visualize Heterogeneity-Robust Event Studies for Non-Absorbing Treatments

0packages depend
1.4Kdownloads / year
77.0%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.4.1
  • Sped up PanelMatch and the fect family (IFE / MC) on large panels.
  • Made estimators more robust on large, real-world panels.
  • Added a pkgdown website.
  • Added a cohort-based heatmap function.
  • Added Stata interoperability.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 21.9 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK7 OK2026-06-19
Advisories

none known

Documentation

In release 0.4.1
READMEYes · 1,301 wordsVignettesYes · 3 · dynamicNEWSYes · 67% structured · mentions 0.4.1Citation fileYes · computed when R runs itWebsiteYes · pkgdown
Help pages
12 (1 internal)includes a package overview page
Examples that run
100%11 run in a plain check (6 of them under a condition)
Exported functions with examples
100%
Documented parameters
75%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.4K
CRAN downloads in the past year
Rank #12,754 · ~4/day · ~113/mo
Daily download trend is not available in this view yet.
36030 days
88590 days
1.4K1 year
Compare downloads with other packages →
Also on22 r2u4 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-07-07 · Default branch at 0.4.1.9000, ahead of CRAN 0.4.1 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
not measured
PracticesBeta

9 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/takuma1102/nonabsdid on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Code of conductContributing guide
Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-07-07 · The repository has a site deploy workflow

pkgdown site last built 2026-07-07

Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 1 practice
Lint, format, editor (1)
lintr
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing nonabsdid adds 25 packages (12 with compiled code, 16 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.3.2 (2026)
Releases (2)

Pick two releases to compare their code metrics.

  • 0.4.1Latest
    record
    2026-06-23 · current release · diff ↗ ·
    added 6 exports
    aggregate_effects, as_nabs_effect_cells, nabs_effect_cells, nabs_read_dta, nabs_write_dta, plot_effect_matrix
  • 0.3.2
    record
    first seen 2026-06-18
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First seen
2026-06-18
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Additional repositories
rpolars.r-universe.dev
Minimum R
≥ 4.1.0
Download size
1.2 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("nonabsdid")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for nonabsdid version 0.4.1 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy