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:
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
Last updated from:b12f759a5a. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 188 | ||
| source / vignettes | OK | 233 | ||
| linux-release-x86_64 | OK | 230 | ||
| macos-release-arm64 | OK | 118 | ||
| macos-oldrel-arm64 | OK | 124 | ||
| windows-devel | OK | 135 | ||
| windows-release | OK | 140 | ||
| windows-oldrel | OK | 123 | ||
| wasm-release | OK | 134 |
Exports:binary_did_drbinary_did_logitbinary_did_probitcount_did_poissonnonlinear_aggtenonlinear_attgtnonlinear_boundsnonlinear_pretestodds_ratio_didsim_binary_panelsim_binary_rcssim_count_panel
Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglatticelifecyclelmtestMASSR6RColorBrewerrlangS7sandwichscalesvctrsviridisLitewithrzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| NonlinearDiD: Staggered DiD with Nonlinear Outcomes | NonlinearDiD-package NonlinearDiD |
| Doubly-Robust Binary DiD | binary_did_dr |
| Binary Outcome DiD: Logit Estimator | binary_did_logit |
| Binary Outcome DiD: Probit Estimator | binary_did_probit |
| Count Outcome DiD: Poisson Estimator | count_did_poisson |
| Aggregate ATT(g,t) Estimates for Nonlinear DiD | nonlinear_aggte |
| Nonlinear Staggered DiD: Group-Time ATT Estimation | nonlinear_attgt |
| Nonparametric Bounds for Binary Outcomes in Staggered DiD | nonlinear_bounds |
| Pre-Treatment Parallel Trends Test for Nonlinear DiD | nonlinear_pretest |
| S3 Methods for NonlinearDiD Objects | nonlineardid_methods |
| Odds-Ratio DiD for Binary Outcomes | odds_ratio_did |
| Plot Aggregated DiD Estimates | plot.nonlinear_aggte |
| Plot ATT(g,t) Estimates | plot.nonlinear_attgt |
| Simulate Binary Panel Data with Staggered Treatment | sim_binary_panel |
| Simulate Binary Repeated Cross-Section Data with Staggered Treatment | sim_binary_rcs |
| Simulate Count Panel Data with Staggered Treatment | sim_count_panel |
