Skip to content

rddensity

3.0

Manipulation Testing Based on Density Discontinuity

1packages depend
34.1Kdownloads / year
47.4%test coverage
13/13checks pass

Overview

About
Maintained by Matias D. CattaneoFirst published 2017-03-1613 releasesCRAN page ↗GitHub ↗

Density discontinuity testing (a.k.a. manipulation testing) is commonly employed in regression discontinuity designs and other program evaluation settings to detect perfect self-selection (manipulation) around a cutoff where treatment/policy assignment changes. This package implements manipulation testing procedures using local polynomial density estimators: rddensity() constructs test statistics and p-values given a prespecified cutoff, rdbwdensity() performs data-driven bandwidth selection, and rdplotdensity() constructs density plots.

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.24
47.4%
Coverage · measured lines
100%
Documentation · exports
2
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-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
97%
Return-value docs
100%
References docs
17%

Downloads

34.1K
CRAN downloads in the past year
Rank #2,320 · ~93/day · ~2.8K/mo
Daily download trend is not available in this view yet.
2K30 days
8.4K90 days
34.1K1 year
Compare downloads with other packages →
Also on174 r2u14 autocran42 c2d4u

Repository

Repository
12Stars
9Forks
0Open issues
0Open PRs
0Releases
120Commits
5Contributors
regression-discontinuity-designscausal-inferencetreatment-effectsprogram-evaluation
120 commits · Last activity 2026-08-14 · 0% stars, 30d

Stars over time

2025-07-22 · 112026-07-07 · 12

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/rdpackages/rddensity on 2026-08-16.

Continuous integration (1)
GitHub Actions
Automation and maintenance (1)
Dependabot
Governance and community (2)
Issue templatesSecurity policy
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.1.0
Imports (2)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Listed in earlier versions (1)
no longer listed · 2.6
Package Timeline

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

  • 3.0Latest
    2026-05-22 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.6
    2024-10-06 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.5
    2024-01-22 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.4
    2023-01-22 · diff ↗
  • 2.3
    2022-11-30 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 2.2
    2021-03-04 · diff ↗
  • 2.1
    2020-09-02 · diff ↗
  • 2.0
    2020-08-05 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0
    2019-07-13 · diff ↗
Show 8 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.2
    2017-08-03 · diff ↗
  • 0.2.1
    2017-07-09 · diff ↗
  • 0.2
    2017-06-04 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1
    2017-03-16
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-03-16
Total releases
13 / 9 yrs
License
GPL-3 OSI
Minimum R
≥ 3.1.0
Bundled data
10 KB / 1 file
Download size
45 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("rddensity")
Cattaneo, M. D., Jansson, M., & Ma, X. (2026). rddensity: Manipulation Testing Based on Density Discontinuity (Version 3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.rddensity

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 rddensity version 3.0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, 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