Learn R Programming

rddtools (version 1.6.0)

rdd_bw_rsw: Global bandwidth selector of Ruppert, Sheather and Wand (1995) from package KernSmooth

Description

Uses the global bandwidth selector of Ruppert, Sheather and Wand (1995) either to the whole function, or to the functions below and above the cutpoint.

Usage

rdd_bw_rsw(object, type = c("global", "sided"))

Arguments

object

object of class rdd_data created by rdd_data

type

Whether to choose a global bandwidth for the whole function (global) or for each side (sided)

Value

One (or two for sided) bandwidth value.

References

See dpill

See Also

rdd_bw_ik Local RDD bandwidth selector using the plug-in method of Imbens and Kalyanaraman (2012)

Examples

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

Run the code above in your browser using DataLab