bsal {ovbsa}R Documentation

basic sensitivity analysis of omitted variable bias

Description

basic sensitivity analysis of omitted variable bias

Usage

bsal(kd, ky, alpha, data, outcome, treatment, bnch_reg, other_reg)

Arguments

kd

sensitivity parameter kD (scalar)

ky

sensitivity parameter kY (scalar)

alpha

significance level for hypothesis test (e.g. 0.05)

data

data frame for analysis

outcome

name of outcome variable

treatment

name of treatment variable

bnch_reg

name(s) of benchmark covariate(s)

other_reg

name(s) of other regressors

Value

a matrix with following rows for case 1, 2 and 3 (in columns):

r2yd.x

partial R2 of Y on D conditioning on X

r2dz.x

partial R2 of D on Z conditioning on X

r2yz.dx

partial R2 of Y on Z conditioning on D and X

estimate

unadjusted parameter estimate

adjusted_estimate

bias-adjusted parameter estimate

adjusted_se

bias-adjusted standard error

adjusted_lower_CI

bias-adjusted confidence interval lower boundary

adjusted_upper_CI

bias-adjusted confidence interval upper boundary

Examples


require("sensemakr")
Y <- "peacefactor"
D <- "directlyharmed"
X <- "female"
X_oth <- c("village","age","farmer_dar","herder_dar","pastvoted","hhsize_darfur")


res1 <- bsal(kd=1,ky=1,alpha=0.05,data=darfur,outcome=Y,treatment=D,bnch_reg=X,other_reg=X_oth)


[Package ovbsa version 2.0.0 Index]