rddapp (version 1.1.0)

mrd_sens_bw: Bandwidth Sensitivity Simulation for Multivariate Regression Discontinuity

Description

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

Usage

mrd_sens_bw(object, approach = c("center", "univ1", "univ2"), bws)

Arguments

object

An object returned by mrd_est or mrd_impute.

approach

A string of the approaches to be refitted, choosing from c("center", "univ1", "univ2").

bws

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

Value

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

Examples

Run this code
# NOT RUN {
x1 <- runif(1000, -1, 1)
x2 <- rnorm(1000, 10, 2)
cov <- rnorm(1000)
y <- 3 + 2 * x1 + 1 * x2 + 3 * cov + 10 * (x1 >= 0) + 5 * (x2 >= 10) + rnorm(1000)
mrd <- mrd_est(y ~ x1 + x2 | cov, cutpoint = c(0, 10), t.design = c("geq", "geq"))
mrd_sens_bw(mrd, approach = "univ1", bws = seq(0.1, 1, length.out = 5))
# }

Run the code above in your browser using DataLab