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

View source: R/dens_test.R

dens_testR 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)

bquast/RDDtools documentation built on Nov. 16, 2023, 3:28 a.m.