cinhaz: Conduct partial and total R2-based sensitivity analysis

View source: R/cinhaz.R

cinhazR Documentation

Conduct partial and total R2-based sensitivity analysis

Description

Conduct partial and total R2-based sensitivity analysis

Usage

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

Arguments

kd

relative strength of the confounder in explaining variation in treatment as compared to benchmark covariate(s)

ky

relative strength of confounder in explaining variation in outcome as compared to benchmerk covariate(s)

data

data frame

outcome

outcome variable

treatment

treatment variable

bnch_reg

benchmark covariate(s)

other_reg

other covariates in the model (other than treatment and benchmark covariates)

alpha

significance level for hypothesis test (H0: true effect = 0)

Value

A data frame with results

Examples

## Load library
library(sensemakr)
## Conduct analysis
cinhaz(kd=1,ky=1,data=darfur,outcome = "peacefactor",
treatment = "directlyharmed", bnch_reg = "female",
other_reg = c("village","age","farmer_dar","herder_dar","pastvoted","hhsize_darfur"),
alpha=0.05)

dbasu-umass/bate documentation built on July 6, 2023, 9:56 a.m.