Package: badcontrols 1.0.0

Hugo SantAnna
badcontrols: Difference-in-Differences with Bad Controls
Implements methods for difference-in-differences with bad controls, i.e., time-varying covariates that are affected by the treatment. Provides imputation, doubly robust, and machine learning estimators that are based on Caetano, Callaway, Payne, and Sant'Anna (2026) <doi:10.48550/arXiv.2608.03881>.
Authors:
badcontrols_1.0.0.tar.gz
badcontrols_1.0.0.zip(r-4.7-any)badcontrols_1.0.0.zip(r-4.6-any)badcontrols_1.0.0.zip(r-4.5-any)
badcontrols_1.0.0.tgz(r-4.6-any)badcontrols_1.0.0.tgz(r-4.5-any)
badcontrols_1.0.0.tar.gz(r-4.7-any)badcontrols_1.0.0.tar.gz(r-4.6-any)
badcontrols_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
badcontrols/json (API)
| # Install 'badcontrols' in R: |
| install.packages('badcontrols', repos = c('https://hugosantanna.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hugosantanna/badcontrols/issues
- nlsy_job_displacement - NLSY79 Job Displacement Application Data
Last updated from:651ccc9257. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 195 | ||
| source / vignettes | OK | 167 | ||
| linux-release | OK | 173 | ||
| macos-release | OK | 259 | ||
| macos-oldrel | OK | 275 | ||
| windows-devel | OK | 181 | ||
| windows-release | OK | 182 | ||
| windows-oldrel | OK | 150 | ||
| wasm-release | OK | 125 |
Exports:didbcdr_ml_attgtsimulate_bad_controls
Dependencies:BHbigmemorybigmemory.sriBMiscclicpp11data.tabledplyrDRDIDfarverfastglmFormulagenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMatrixpbapplypillarpkgconfigptetoolsR6RColorBrewerRcppRcppArmadilloRcppEigenrlangS7scalessplines2tibbletidyselecttrustutf8uuidvctrsviridisLitewithr
Last update: 2026-08-30
Started: 2026-08-07
Last update: 2026-08-24
Started: 2026-08-07
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Estimate ATT(g,t) with Bad Controls | didbc |
| Doubly Robust Estimator for Bad Controls | dr_ml_attgt |
| NLSY79 Job Displacement Application Data | nlsy_job_displacement |
| Simulate Panel Data with Bad Controls | simulate_bad_controls |