cinhaz | R Documentation |
Conduct partial and total R2-based sensitivity analysis
cinhaz(kd, ky, data, outcome, treatment, bnch_reg, other_reg, alpha)
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) |
A data frame with results
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.