Power, Sample Size, and Minimum Detectable Effect Calculations for RD Designs
Overview
The regression discontinuity (RD) design is a popular quasi-experimental design for causal inference and policy evaluation. The 'rdpower' package provides tools to perform power, sample size, and minimum detectable effect calculations in RD designs: rdpower() calculates the power of an RD design, rdsampsi() calculates the required sample size to achieve a desired power, and rdmde() calculates minimum detectable effects. See Cattaneo, Titiunik and Vazquez-Bare (2019) https://rdpackages.github.io/references/Cattaneo-Titiunik-VazquezBare_2019_Stata.pdf for further methodological details.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-22
- ERROR12 OK, 1 ERROR2026-05-20
- OK13 OK2026-05-19
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 2 ERROR2026-05-17
- OK14 OK2026-03-10
Documentation
- Help pages
- 5includes a package overview page
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 80%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
PRs over time
Commits over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/rdpackages/rdpower on 2026-10-22.
The R CMD check workflow runs on Linux
Dependencies
Code & Tests
People & History
Previously maintained by Gonzalo Vazquez-Bare (0.1 to 2.3).
Pick two releases to compare their code metrics.
- 3.0Latest
- RR 4.6.0 released · 2026-04-24
- 2.32025-05-23 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 2.22022-06-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.12021-11-11 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 2.0
- 1.02020-08-26 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.52020-04-05 · diff ↗
- 0.42019-10-28 · diff ↗
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2018-03-23
- Total releases
- 11 / 8 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.6.0
- Download size
- 15 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rdpower")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.