dens_test {rddtools}R Documentation

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

data(house)
house_rdd <- rdd_data(y=house$y, x=house$x, cutpoint=0)
dens_test(house_rdd)

[Package rddtools version 1.6.0 Index]