Skip to content

NonlinearDiD

0.2.0

Staggered Difference-in-Differences with Nonlinear Outcomes

0packages depend
1Kdownloads / year
37.3%test coverage
13/13checks pass

Overview

About
Maintained by Subir HaitFirst published 2026-05-062 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 2.8 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.05
37.3%
Coverage · measured lines
100%
Documentation · exports
6
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-06
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 771 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
83%
Documented parameters
100%
Return-value docs
100%
References docs
24%

Downloads

1K
CRAN downloads in the past year
Rank #12,416 · ~3/day · ~84/mo
Daily download trend is not available in this view yet.
15130 days
80390 days
1K1 year
Compare downloads with other packages →
Also on108 r2u

Repository

Repository
1Stars
0Forks
1Open issues
0Open PRs
1Releases
12Commits
1Contributors
12 commits · Last activity 2026-05-21 · 0% stars, 30d

Stars over time

2026-07-14 · 02026-07-31 · 1

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (2)
data-raw/Makefile
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.0.0
Imports (6)
statsutilsMASSsandwichlmtestggplot2
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.2.0Latest
    2026-05-20 · current release · diff ↗
  • 0.1.0
    2026-05-06
  • R
    R 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")
Hait, S. (2026). NonlinearDiD: Staggered Difference-in-Differences with Nonlinear Outcomes (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for NonlinearDiD version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

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.

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