rddapp (version 1.1.0)

rd_sens_bw: Bandwidth Sensitivity Simulation for Regression Discontinuity

Description

rd_sens_bw refits the supplemented model with varying bandwidth. Other estimation parameters are held constant.

Usage

rd_sens_bw(object, bws)

Arguments

object

An object returned by rd_est or rd_impute.

bws

A positive numeric vector of bandwidth for refitting an rd object.

Value

A dataframe which contains the estimate est and standard error se for each supplemented bandwidth.

Examples

Run this code
# NOT RUN {
x <- runif(1000, -1, 1)
cov <- rnorm(1000)
y <- 3 + 2 * x + 3 * cov + 10 * (x >= 0) + rnorm(1000)
rd <- rd_est(y ~ x | cov, t.design = "geq")
rd_sens_bw(rd, bws = seq(.1, 1, length.out = 5))
# }

Run the code above in your browser using DataLab