mrd_sens_cutoff: Cutoff Sensitivity Simulation for Multivariate Regression...

Description Usage Arguments Value Examples

Description

mrd_sens_cutoff refits the supplemented model with varying cutoff(s). Other estimation parameters, such as the automatically calculated bandwidth, are held constant.

Usage

1
mrd_sens_cutoff(object, cutoffs)

Arguments

object

An object returned by mrd_est or mrd_impute.

cutoffs

A two-column numeric matrix of paired cutoff values to be used for refitting an mrd object.

Value

A dataframe which contains the estimate est and standard error se for each pairs of cutoffs (A1 and A2). A1 contains varying cutoffs on assignment 1, and A2 assignment 2.

Examples

1
2
3
4
5
6
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_cutoff(mrd, expand.grid(A1 = seq(-.5, .5, length.out = 5), A2 = 10))

rddapp documentation built on May 1, 2019, 8:04 p.m.