Skip to content

DRDID

1.3.0

Doubly Robust Difference-in-Differences Estimators

2packages depend
128.1Kdownloads / year
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: 2.8 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.34
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
Yes
README
5
Dependencies · direct
Check history
  • 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
  • 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
Show 2 earlier snapshots
  • 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

Downloads

128.1K
CRAN downloads in the past year
Rank #1,185 · ~351/day · ~10.7K/mo
DRDID
Daily download trend is not available in this view yet.
11.1K30 days
33.2K90 days
128.1K1 year
Compare downloads with other packages →
Also on1.9K r2u18 autocran3.2K conda_forge33 c2d4u

Repository

Repository
102Stars
43Forks
4Open issues
0Open PRs
9Releases

Dependencies

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

Code & Tests

Code Composition
R 7,409 (80%)Rd 1,774 (19%)C++ 62 (1%)
Code characteristics
Object systems
S32
Cyclomatic complexity
2.0 median / 42 max
Test cases
15 / 0.34 per code line
Documented parameters
100%

Test coverage

Line coverage

Expression

Tests / Examples

Functions

49 17 exported

Complexity

6.3 avg / 42 max

Call network

49 nodes / 72 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (2)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (2)
Author, Maintainer, Copyright holder
Author
Copyright holders (1)
Author, Maintainer, Copyright holder
Release 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 ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.3
    2021-11-13 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.1
    2021-01-07 · diff ↗
Show 2 earlier events
  • 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
482 KB
Installed size
not tracked yet
With dependencies
not tracked yet