saltr2 {ovbsa}R Documentation

probability of conclusion being overturned using total R2-based analysis

Description

probability of conclusion being overturned using total R2-based analysis

Usage

saltr2(
  alpha,
  data,
  outcome,
  treatment,
  bnch_reg,
  other_reg,
  N,
  maxkd = NULL,
  maxky = NULL,
  k_kd = 1,
  k_ky = 1
)

Arguments

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)

N

number of points on grid = N^2

maxkd

max of sensitivity parameter kD

maxky

max of sensitivity parameter kY

k_kd

mode (and median) of sensitivity parameter kD

k_ky

mode (and median) of sensitivity parameter kY

Value

list with the following elements:

dataplot

data set used for contour plot

kdmax

max of sensitivity parameter kD

kymax

max of sensitivity parameter kY

frac_prob

prob of conclusion being overturned (unwt)

frac_prob_wt

prob of conclusion being overturned (wt)

frac_prob_rest

prob of conclusion being overturned (unwt, rest)

frac_prob_rest_wt

prob of conclusion being overturned (wt, rest)

Examples


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

darfur1 <- dplyr::slice_sample(darfur, prop=0.25)

res3 <- saltr2(alpha=0.05,data=darfur1,outcome=Y,treatment=D,bnch_reg=X,other_reg=X_oth,N=500)


[Package ovbsa version 2.0.0 Index]