Skip to content

rddensity

3.0Package record

Manipulation Testing Based on Density Discontinuity

0packages dependsuggested by 1
34.9Kdownloads / year
47.4%test coverage
13/13flavors OK

Overview

About

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.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 3.0
READMENoVignettesNoNEWSNoCitation fileNoWebsiteYes
Help pages
24 (19 internal)includes a package overview page
Examples that run
100%3 run in a plain check
Exported functions with examples
100%
Documented parameters
97%
Return-value docs
100%
Help pages citing references
17%

Downloads

34.9K
CRAN downloads in the past year
Rank #2,017 · ~96/day · ~2.9K/mo
Daily download trend is not available in this view yet.
3.9K30 days
9.2K90 days
34.9K1 year
Compare downloads with other packages →
Also on203 r2u90 c2d4u

Repository

12Stars
9Forks
0Open issues
0Open PRs
0Releases
124Commits
5Commit identities
regression-discontinuity-designscausal-inferencetreatment-effectsprogram-evaluation
124 commits · Last activity 2026-10-24 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
92%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-10-17 · 122026-07-07 · 12
PracticesBeta

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

Checks run against github.com/rdpackages/rddensity on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Governance and community (3)
Issue templatesPR templateSecurity policy
Docs source (1)

GitHub Pages site last deployed 2022-05-26

Automation and maintenance (1)
Dependabot
Show all practicesHide 1 practice
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing rddensity adds 18 packages (7 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.

Depends (1)
R >= 3.1.0
Imports (2)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 3.0 (2026)
Author

Previously maintained by Xinwei Ma (0.1 to 2.6).

Listed in earlier versions (1)
Cattaneo
no longer listed · 2.6
Releases (13)

Pick two releases to compare their code metrics.

Show 8 earlier eventsHide 8 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.2
    record
    2017-08-03 · diff ↗
  • 0.2.1
    record
    2017-07-09 · diff ↗
  • 0.2
    record
    2017-06-04 · diff ↗ ·
    added 1 export
    rdplotdensity
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1
    record
    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
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 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for rddensity version 3.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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