Learn R Programming

rddensity (version 2.6)

Manipulation Testing Based on Density Discontinuity

Description

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 the local polynomial density estimators: rddensity() to construct test statistics and p-values given a prespecified cutoff, rdbwdensity() to perform data-driven bandwidth selection, and rdplotdensity() to construct density plots.

Copy Link

Version

Install

install.packages('rddensity')

Monthly Downloads

1,742

Version

2.6

License

GPL-2

Maintainer

Xinwei Ma

Last Published

October 6th, 2024

Functions in rddensity (2.6)

h_opt_density_res

Internal function, calculates theoretical optimal bandwidth.
rdbwdensity

Bandwidth Selection for Manipulation Testing
rddensity-package

rddensity: Manipulation Testing Based on Density Discontinuity
rddensity_senate

RD Senate Data
rdplotdensity

Density Plotting for Manipulation Testing
summary.CJMrddensity

Internal function.
summary.CJMrdbwdensity

Internal function.
Cplusgenerate

Internal function, generate matrices.
Sminusgenerate

Internal function, generate matrices.
Gminusgenerate

Internal function, generate matrices.
Psigenerate

Internal function, generate matrices.
Ggenerate

Internal function, generate matrices.
Splusgenerate

Internal function, generate matrices.
Cgenerate

Internal function, generate matrices.
rddensity

Manipulation Testing Using Local Polynomial Density Estimation
print.CJMrddensity

Internal function.
Sgenerate

Internal function, generate matrices.
print.CJMrdbwdensity

Internal function.
Cminusgenerate

Internal function, generate matrices.
h_opt_density

Internal function, calculates theoretical optimal bandwidth.
rddensityUnique

Internal function.
Gplusgenerate

Internal function, generate matrices.
rddensity_H

Internal function, normal distribution related quantities.
rddensity_fV

Internal function, implements density test.