NonlinearDiD
0.2.0Staggered Difference-in-Differences with Nonlinear Outcomes
Overview
Supports staggered difference-in-differences designs with nonlinear outcomes for both panel and repeated cross-section data. Implements estimators for staggered treatment adoption with binary, count, and other nonlinear outcomes, extending Callaway and Sant'Anna (2021) doi:10.1016/j.jeconom.2020.12.001 to settings with nonlinear outcome models such as logit, probit, and Poisson. For panel data, units are followed over time and 'idname' identifies repeated observations. For repeated cross-section data, observations are independent within each time period; 'idname' is optional and may identify survey records or households, but the estimator does not require the same units to appear across periods. Repeated cross-section estimation includes pooled quasi-maximum likelihood approaches motivated by Wooldridge (2023) doi:10.1093/ectj/utad016, with optional weighting and clustered inference. Methods also draw on Roth and Sant'Anna (2023) doi:10.3982/ECTA19402 and Sant'Anna and Zhao (2020) doi:10.1016/j.jeconom.2020.06.003.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-05-067 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 83%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 24%
Downloads
Repository
Stars over time
Issues over time
Repository practices
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/causalfragility-lab/nonlineardid on 2026-08-16.
Dependencies
Nothing depends on this yet.
Code & Tests
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- 0.2.0Latest
- 0.1.02026-05-06
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-05-06
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 38 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("NonlinearDiD")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.