Learn R Programming

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

rddensity (version 1.0)

Manipulation Testing Based on Density Discontinuity

Description

Density discontinuity test (a.k.a. manipulation test) is commonly employed in regression discontinuity designs and other program evaluation settings to detect whether there is evidence of perfect self-selection (manipulation) around a cutoff where a treatment/policy assignment changes. This package provides tools for conducting the aforementioned statistical test: rddensity() to construct local polynomial based density discontinuity test given a prespecified cutoff, rdbwdensity() to perform bandwidth selection, and rdplotdensity() to construct density plot near the cutoff.

Copy Link

Version

Install

install.packages('rddensity')

Monthly Downloads

2,098

Version

1.0

License

GPL-2

Maintainer

Xinwei Ma

Last Published

July 12th, 2019

Functions in rddensity (1.0)

h_opt_density

Internal function, calculates theoretical optimal bandwidth.
rddensity_senate

RD Senate Data
rddensity_fV

Internal function, implements density test.
rdbwdensity

Bandwidth Selection for Manipulation Testing Using Local Polynomial Density Estimation
rddensity-package

rddensity: Manipulation Testing Based on Density Discontinuity
rddensity

Manipulation Testing Using Local Polynomial Density Estimation
Gplusgenerate

Internal function, generate matrices.
rddensity_H

Internal function, normal distribution related quantities.
summary.CJMrddensity

Internal function.
h_opt_density_res

Internal function, calculates theoretical optimal bandwidth.
rdplotdensity

Density Plot
print.CJMrdbwdensity

Internal function.
print.CJMrddensity

Internal function.
summary.CJMrdbwdensity

Internal function.
Ggenerate

Internal function, generate matrices.
Sminusgenerate

Internal function, generate matrices.
Psigenerate

Internal function, generate matrices.
Cgenerate

Internal function, generate matrices.
Cminusgenerate

Internal function, generate matrices.
Sgenerate

Internal function, generate matrices.
Cplusgenerate

Internal function, generate matrices.
Gminusgenerate

Internal function, generate matrices.
Splusgenerate

Internal function, generate matrices.