Learn R Programming

⚠️There's a newer version (2.6) of this package.Take me there.

rddensity (version 2.5)

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,679

Version

2.5

License

GPL-2

Maintainer

Xinwei Ma

Last Published

January 22nd, 2024

Functions in rddensity (2.5)

h_opt_density

Internal function, calculates theoretical optimal bandwidth.
rdbwdensity

Bandwidth Selection for Manipulation Testing
h_opt_density_res

Internal function, calculates theoretical optimal bandwidth.
rddensity_fV

Internal function, implements density test.
rddensity

Manipulation Testing Using Local Polynomial Density Estimation
print.CJMrdbwdensity

Internal function.
print.CJMrddensity

Internal function.
rddensity-package

rddensity: Manipulation Testing Based on Density Discontinuity
summary.CJMrddensity

Internal function.
summary.CJMrdbwdensity

Internal function.
rddensity_senate

RD Senate Data
rddensityUnique

Internal function.
rdplotdensity

Density Plotting for Manipulation Testing
Sminusgenerate

Internal function, generate matrices.
Ggenerate

Internal function, generate matrices.
Cgenerate

Internal function, generate matrices.
Cplusgenerate

Internal function, generate matrices.
Sgenerate

Internal function, generate matrices.
Psigenerate

Internal function, generate matrices.
Splusgenerate

Internal function, generate matrices.
Cminusgenerate

Internal function, generate matrices.
rddensity_H

Internal function, normal distribution related quantities.
Gminusgenerate

Internal function, generate matrices.
Gplusgenerate

Internal function, generate matrices.