Description Usage Arguments Details References
Choose bandwidth for density test based on McCrary's Criterion
1 | bandwidth_mccrary(rv, cutoff, method = "mccrary", ...)
|
rv |
running variable |
cutoff |
cutoff(s) for discontinuity |
method |
method for selecting bin width for first-step histogram smoother |
... |
ignored for now |
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.
McCrary, Justin. "Manipulation of the running variable in the regression discontinuity design: A density test." Journal of econometrics 142.2 (2008): 698-714.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.