Learn R Programming

rddtools (version 1.6.0)

dens_test: Run the McCracy test for manipulation of the forcing variable

Description

Calls the DCdensity test from package rdd on a rdd_object.

Usage

dens_test(rdd_object, bin = NULL, bw = NULL, plot = TRUE, ...)

Arguments

rdd_object

object of class rdd_data

bin

Argument of the DCdensity function, the binwidth

bw

Argument of the DCdensity function, the bandwidth

plot

Whether to return a plot. Logical, default ot TRUE.

Further arguments passed to DCdensity.

Examples

Run this code
# NOT RUN {
data(house)
house_rdd <- rdd_data(y=house$y, x=house$x, cutpoint=0)
dens_test(house_rdd)
# }

Run the code above in your browser using DataLab