Skip to content

DRDID

1.3.0

Doubly Robust Difference-in-Differences Estimators

2packages depend
130.4Kdownloads / year
94.6%test coverage
13/13checks pass

Overview

About
Maintained by Pedro H. C. Sant'AnnaFirst published 2020-05-1811 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 3.4 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.34
94.6%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 4 earlier snapshots
  • ERROR2026-04-25
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 253 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
86%

Downloads

130.4K
CRAN downloads in the past year
Rank #1,131 · ~357/day · ~10.9K/mo
Daily download trend is not available in this view yet.
8.7K30 days
31.2K90 days
130.4K1 year
Compare downloads with other packages →
Also on1.8K r2u24 autocran3.4K conda_forge33 c2d4u

Repository

Repository
103Stars
42Forks
4Open issues
0Open PRs
9Releases
214Commits
4Contributors
214 commits · Last activity 2026-06-10 · 0% stars, 30d

Stars over time

2025-07-21 · 932026-07-23 · 103

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/pedrohcgs/drdid on 2026-08-23.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
2direct
5indirect

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (2)
Author, Maintainer, Copyright holder
Author · added in 1.0.1
Copyright holders (1)
Author, Maintainer, Copyright holder
Listed in earlier versions (1)
no longer listed · 1.0.0
Package Timeline

11 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.3.0Latest
    2026-06-10 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.3
    2025-12-04 · diff ↗
  • 1.2.2
    2025-05-30 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.0
    2024-10-07 · diff ↗
  • 1.1.0
    2024-09-05 · diff ↗
  • 1.0.7
    2024-07-06 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.6
    2023-05-18 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.4
    2022-07-19 · diff ↗
  • unarchivedReturned to CRAN
    2022-07-19
  • archivedRemoved from CRAN
    2022-07-09
    requires archived package 'BMisc'
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.3
    2021-11-13 · diff ↗
Show 4 earlier events
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.1
    2021-01-07 · diff ↗
  • 1.0.0
    2020-05-18
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-05-18
Total releases
11 / 6 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5
Bundled data
401 KB / 3 files
Download size
485 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("DRDID")
Sant'Anna, P. H. C., & Zhao, J. (2026). DRDID: Doubly Robust Difference-in-Differences Estimators (Version 1.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.DRDID

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for DRDID version 1.3.0 [Data set]. HJJB, LLC. Data release v2026-08-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy