Package: NonlinearDiD 0.2.0

NonlinearDiD: Staggered Difference-in-Differences with Nonlinear Outcomes

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>.

Authors:Subir Hait [aut, cre]

NonlinearDiD_0.2.0.tar.gz
NonlinearDiD_0.2.0.zip(r-4.7-any)NonlinearDiD_0.2.0.zip(r-4.6-any)NonlinearDiD_0.2.0.zip(r-4.5-any)
NonlinearDiD_0.2.0.tgz(r-4.6-any)NonlinearDiD_0.2.0.tgz(r-4.5-any)
NonlinearDiD_0.2.0.tar.gz(r-4.7-any)NonlinearDiD_0.2.0.tar.gz(r-4.6-any)
NonlinearDiD_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
NonlinearDiD/json (API)

# Install 'NonlinearDiD' in R:
install.packages('NonlinearDiD', repos = c('https://causalfragility-lab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/causalfragility-lab/nonlineardid/issues

On CRAN:

Conda:

3.00 score 1 stars 2 scripts 237 downloads 12 exports 22 dependencies

Last updated from:b12f759a5a. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK188
source / vignettesOK233
linux-release-x86_64OK230
macos-release-arm64OK118
macos-oldrel-arm64OK124
windows-develOK135
windows-releaseOK140
windows-oldrelOK123
wasm-releaseOK134

Exports:binary_did_drbinary_did_logitbinary_did_probitcount_did_poissonnonlinear_aggtenonlinear_attgtnonlinear_boundsnonlinear_pretestodds_ratio_didsim_binary_panelsim_binary_rcssim_count_panel

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglatticelifecyclelmtestMASSR6RColorBrewerrlangS7sandwichscalesvctrsviridisLitewithrzoo