Skip to content

rd2d

Estimation and Inference for Boundary Discontinuity Designs

v1.0.0 · May 28, 2026 · GPL-3

Description

Provides pointwise and uniform estimation and inference methods for boundary discontinuity (BD) designs, a causal inference design that generalizes univariate regression discontinuity (RD) designs to settings with bivariate scores. Implements local polynomial methods for location-based and distance-based analyses, including sharp and fuzzy designs, data-driven bandwidth selection, pointwise confidence intervals, and uniform confidence bands. Methodology is developed in Cattaneo, Titiunik, and Yu (2026) <doi:10.48550/arXiv.2505.05670> for location-based methods and Cattaneo, Titiunik, and Yu (2026) <doi:10.48550/arXiv.2510.26051> for distance-based methods. For an overview and empirical guidance, see Cattaneo, Titiunik, and Yu (2026) <doi:10.48550/arXiv.2511.06474>. The companion software article is Cattaneo, Titiunik, and Yu (2025) <doi:10.48550/arXiv.2505.07989>.

Downloads

CRAN

443

Last 30 days

9516th

1.1K

Last 90 days

2.9K

Last year

Trend: -9.4% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

39

Last 90 days

122

Last year

Trend: -95.7% (30d vs prior 30d)

autoCRAN

3

Last 7 days

9

Last 30 days

3

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code intelligence has not been computed for this package yet.

Code

Structure

Lines of code

13,546

Files

34

Compiled share

0%

Has compiled src

No

Language breakdown

R 9,554 (70.5%)Tests 2,338 (17.3%)Docs 1,654 (12.2%)

API

Exported functions

4

Internal functions

116

Recent export changes

v0.1.0+2 rd2d.distance, rdbw2d.distance  −2 rd2d.dist, rdbw2d.dist

Testing & CI

Has tests

Yes

Test-to-code ratio

0.24

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

75%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2025-05-14

Latest release

2026-05-28

Avg cadence

27 days

Cold removal rate

100%

Dep drift

2

LOC over versions

v0.0.1: 5,264 LOCv0.0.2: 5,403 LOCv0.0.3: 5,496 LOCv0.1.0: 10,646 LOCv0.2.0: 10,822 LOCv1.0.0: 13,546 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies MASS expm ggplot2 rd2d

Version History

7 tracked
updated 1.0.0 ← 0.2.0 diff May 28, 2026
updated 0.2.0 ← 0.1.0 diff May 23, 2026
updated 0.1.0 ← 0.0.3 diff May 14, 2026
new 0.0.3 Mar 10, 2026
updated 0.0.3 ← 0.0.2 diff Oct 23, 2025
updated 0.0.2 ← 0.0.1 diff Jun 9, 2025
new 0.0.1 May 13, 2025