Learn R Programming

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

rddensity (version 2.1)

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.1

License

GPL-2

Maintainer

Xinwei Ma

Last Published

September 2nd, 2020

Functions in rddensity (2.1)

rdplotdensity

Density Plotting for Manipulation Testing
rddensity_senate

RD Senate Data
rddensity

Manipulation Testing Using Local Polynomial Density Estimation
print.CJMrddensity

Internal function.
print.CJMrdbwdensity

Internal function.
Sgenerate

Internal function, generate matrices.
Cgenerate

Internal function, generate matrices.
Cminusgenerate

Internal function, generate matrices.
rddensityUnique

Internal function.
rdbwdensity

Bandwidth Selection for Manipulation Testing
Gminusgenerate

Internal function, generate matrices.
Splusgenerate

Internal function, generate matrices.
Sminusgenerate

Internal function, generate matrices.
Psigenerate

Internal function, generate matrices.
rddensity-package

rddensity: Manipulation Testing Based on Density Discontinuity
rddensity_H

Internal function, normal distribution related quantities.
Ggenerate

Internal function, generate matrices.
rddensity_fV

Internal function, implements density test.
Cplusgenerate

Internal function, generate matrices.
Gplusgenerate

Internal function, generate matrices.
summary.CJMrddensity

Internal function.
h_opt_density

Internal function, calculates theoretical optimal bandwidth.
summary.CJMrdbwdensity

Internal function.
h_opt_density_res

Internal function, calculates theoretical optimal bandwidth.