Package: DRDID 1.2.0

Pedro H. C. SantAnna

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.2.0.tar.gz
DRDID_1.2.0.tar.gz(r-4.5-noble)DRDID_1.2.0.tar.gz(r-4.4-noble)
DRDID_1.2.0.tgz(r-4.4-emscripten)DRDID_1.2.0.tgz(r-4.3-emscripten)
DRDID.pdf |DRDID.html
DRDID/json (API)
NEWS

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

Peer review:

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

Pkgdown 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

cpp

5.31 score 3 stars 3 packages 136 scripts 3.7k downloads 17 exports 27 dependencies

Last updated 3 months agofrom:33a44aa5e6. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 07 2024
R-4.5-linux-x86_64OKDec 07 2024

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

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