Package: DRDID 1.3.0

DRDID: Doubly Robust Difference-in-Differences Estimators

Implements the locally efficient doubly robust difference-in-differences (DiD) estimators for the average treatment effect proposed by Sant'Anna and Zhao (2020) <doi:10.1016/j.jeconom.2020.06.003>. The estimator combines inverse probability weighting and outcome regression estimators (also implemented in the package) to form estimators with more attractive statistical properties. Two different estimation methods can be used to estimate the nuisance functions.

Authors:Pedro H. C. Sant'Anna [aut, cre, cph], Jun Zhao [aut]

DRDID_1.3.0.tar.gz
DRDID_1.3.0.zip(r-4.7-x86_64)DRDID_1.3.0.zip(r-4.7-arm64)DRDID_1.3.0.zip(r-4.6-x86_64)DRDID_1.3.0.zip(r-4.6-arm64)DRDID_1.3.0.zip(r-4.5-x86_64)
DRDID_1.3.0.tgz(r-4.6-x86_64)DRDID_1.3.0.tgz(r-4.6-arm64)DRDID_1.3.0.tgz(r-4.5-x86_64)DRDID_1.3.0.tgz(r-4.5-arm64)
DRDID_1.3.0.tar.gz(r-4.7-arm64)DRDID_1.3.0.tar.gz(r-4.7-x86_64)DRDID_1.3.0.tar.gz(r-4.6-arm64)DRDID_1.3.0.tar.gz(r-4.6-x86_64)
DRDID_1.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
DRDID/json (API)

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

Bug tracker:https://github.com/pedrohcgs/drdid/issues

Pkgdown/docs site:https://psantanna.com

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • nsw - National Supported Work Demonstration dataset
  • nsw_long - National Supported Work Demonstration dataset, in long format
  • sim_rc - Simulated repeated cross-section data

On CRAN:

Conda:

cpp

9.64 score 104 stars 9 packages 321 scripts 11k downloads 17 exports 14 dependencies

Last updated from:85807cfbdd. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK131
linux-devel-x86_64OK159
source / vignettesOK191
linux-release-arm64OK172
linux-release-x86_64OK161
macos-release-arm64OK286
macos-release-x86_64OK391
macos-oldrel-arm64OK187
macos-oldrel-x86_64OK295
windows-devel-arm64OK369
windows-devel-x86_64OK290
windows-release-arm64OK387
windows-release-x86_64OK174
windows-oldrel-x86_64OK197
wasm-releaseOK151

Exports:drdiddrdid_imp_paneldrdid_imp_rcdrdid_imp_rc1drdid_paneldrdid_rcdrdid_rc1ipw_did_panelipw_did_rcipwdidordidreg_did_panelreg_did_rcstd_ipw_did_panelstd_ipw_did_rctwfe_did_paneltwfe_did_rc

Dependencies:BHbigmemorybigmemory.sriBMiscdata.tablefastglmFormulalatticeMatrixRcppRcppArmadilloRcppEigentrustuuid

Readme and manuals

Help Manual

Help pageTopics
Locally efficient doubly robust DiD estimators for the ATTdrdid
Improved locally efficient doubly robust DiD estimator for the ATT, with panel datadrdid_imp_panel
Improved locally efficient doubly robust DiD estimator for the ATT, with repeated cross-section datadrdid_imp_rc
Improved doubly robust DiD estimator for the ATT, with repeated cross-section datadrdid_imp_rc1
Locally efficient doubly robust DiD estimator for the ATT, with panel datadrdid_panel
Locally efficient doubly robust DiD estimator for the ATT, with repeated cross-section datadrdid_rc
Doubly robust DiD estimator for the ATT, with repeated cross-section datadrdid_rc1
Inverse probability weighted DiD estimator, with panel dataipw_did_panel
Inverse probability weighted DiD estimator, with repeated cross-section dataipw_did_rc
Inverse probability weighted DiD estimators for the ATTipwdid
National Supported Work Demonstration datasetnsw
National Supported Work Demonstration dataset, in long formatnsw_long
Outcome regression DiD estimators for the ATTordid
Outcome regression DiD estimator for the ATT, with panel datareg_did_panel
Outcome regression DiD estimator for the ATT, with repeated cross-section datareg_did_rc
Simulated repeated cross-section datasim_rc
Standardized inverse probability weighted DiD estimator, with panel datastd_ipw_did_panel
Standardized inverse probability weighted DiD estimator, with repeated cross-section datastd_ipw_did_rc
Two-way fixed effects DiD estimator, with panel datatwfe_did_panel
Two-way fixed effects DiD estimator, with repeated cross-section datatwfe_did_rc