Skip to content

rdpower

Power, Sample Size, and Minimum Detectable Effect Calculations for RD Designs

v3.0 · May 17, 2026 · GPL-3

Description

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.

Downloads

CRAN

974

Last 30 days

3623rd

2.7K

Last 90 days

10.1K

Last year

Trend: +6.1% (30d vs prior 30d)

r2u CRAN

16

Last 30 days

32

Last 90 days

122

Last year

Trend: +6.7% (30d vs prior 30d)

autoCRAN

0

Last 7 days

8

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 22, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 20, 2026
ERROR r-oldrel-windows-x86_64

examples

Running examples in 'rdpower-Ex.R' failed
The error most likely occurred in:

> ### Name: rdmde
> ### Title: MDE Calculations for RD Designs
> ### Aliases: rdmde
> 
> ### ** Examples
> 
> # Toy dataset
> X <- array(rnorm(2000),dim=c(1000,2))
> R <- X
...[truncated]...
<- 1 + R -.5*R^2 + .3*R^3 + (R>=0) + rnorm(1000)
> # MDE calculation
> tmp <- rdmde(data=cbind(Y,R),init.cond=0.5)
Error in rdrobust::rdrobust(Y, R, c = cutoff, all = TRUE, covs = covs,  : 
  unused argument (all = TRUE)
Calls: rdmde
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 19, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE May 17, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘rdpower-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: rdmde
> ### Title: MDE Calculations for RD Designs
> ### Aliases: rdmde
> 
> ### ** Examples
> 
> # To
...[truncated]...
<- 1 + R -.5*R^2 + .3*R^3 + (R>=0) + rnorm(1000)
> # MDE calculation
> tmp <- rdmde(data=cbind(Y,R),init.cond=0.5)
Error in rdrobust::rdrobust(Y, R, c = cutoff, all = TRUE, covs = covs,  : 
  unused argument (all = TRUE)
Calls: rdmde
Execution halted
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘rdpower-Ex.R’ failed
The error most likely occurred in:

> ### Name: rdmde
> ### Title: MDE Calculations for RD Designs
> ### Aliases: rdmde
> 
> ### ** Examples
> 
> # Toy dataset
> X <- array(rnorm(2000),dim=c(1000,2))
> R <- X
...[truncated]...
<- 1 + R -.5*R^2 + .3*R^3 + (R>=0) + rnorm(1000)
> # MDE calculation
> tmp <- rdmde(data=cbind(Y,R),init.cond=0.5)
Error in rdrobust::rdrobust(Y, R, c = cutoff, all = TRUE, covs = covs,  : 
  unused argument (all = TRUE)
Calls: rdmde
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies rdrobust rdpower

Version History

12 tracked
updated 3.0 ← 2.3 diff May 17, 2026
new 2.3 Mar 10, 2026
updated 2.3 ← 2.2 diff May 22, 2025
updated 2.2 ← 2.1 diff Jun 21, 2022
updated 2.1 ← 2.0 diff Nov 10, 2021
updated 2.0 ← 1.0 diff Dec 17, 2020
updated 1.0 ← 0.5 diff Aug 25, 2020
updated 0.5 ← 0.4 diff Apr 4, 2020
updated 0.4 ← 0.3 diff Oct 27, 2019
updated 0.3 ← 0.2 diff Aug 21, 2018
updated 0.2 ← 0.1 diff Jul 12, 2018
new 0.1 Mar 22, 2018