bandwidth_mccrary: Choose bandwidth for density test based on McCrary's...

Description Usage Arguments Details References

View source: R/smooths.R

Description

Choose bandwidth for density test based on McCrary's Criterion

Usage

1
bandwidth_mccrary(rv, cutoff, method = "mccrary", ...)

Arguments

rv

running variable

cutoff

cutoff(s) for discontinuity

method

method for selecting bin width for first-step histogram smoother

...

ignored for now

Details

The procedure as detailed in McCrary (2008) recommends using an automated process as a starting point and subsequently implementing a subjective rule, while reporting the difference from the automated process. For details, please see the paper.

For details on the first-step histogram smoother, see make_grid or bin.

References

McCrary, Justin. "Manipulation of the running variable in the regression discontinuity design: A density test." Journal of econometrics 142.2 (2008): 698-714.


be-green/shinyrd documentation built on April 14, 2020, 12:43 a.m.