tr2bias {ovbsa} | R Documentation |
bias and std error for (kd,ky) using total R2-based analysis
Description
bias and std error for (kd,ky) using total R2-based analysis
Usage
tr2bias(kd, ky, alpha, data, outcome, treatment, bnch_reg, other_reg = NULL)
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 covariate(s) |
Value
a list with the following elements:
adjestp |
Adj std error when unadj estimate>0 |
adjestn |
Adj std error when unadj estimate<0 |
cilbp |
Adj lower boundary of conf int when unadj estimate>0 |
ciubp |
Adj upper boundary of conf int when unadj estimate>0 |
cilbn |
Adj lower boundary of conf int when unadj estimate<0 |
ciubn |
Adj upper boundary of conf int when unadj estimate<0 |
Examples
require("sensemakr")
Y <- "peacefactor"
D <- "directlyharmed"
X <- "female"
X_oth <- c("village","age","farmer_dar","herder_dar","pastvoted","hhsize_darfur")
res2 <- tr2bias(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]