The goal of sensemakr is to make a simple sensitivity (to confounding) analysis widely accessible. The package defines a custom 'sensemakr' class that enables plot, summary, and print methods so that the user can make sense of unobserved confounding.
You can install sensemakr from github with:
# install.packages("devtools")
devtools::install_github("chadhazlett/sensemakr")The accompanying vignette can be viewed here.
Additionally, if you want to install the companion vignette inside R, use the below command instead:
devtools::install_github("chadhazlett/sensemakr",build_vignettes = TRUE,force=TRUE)
vignette('sensemakr')Below is a basic example of the functionality in the sensemakr package
library(sensemakr)
lm.out = lm(peacefactor ~ directlyharmed + age + female + village, data = darfur)
sense.out = sensemakr(model=lm.out, treatment="directlyharmed")
plot(sense.out, showvars = list("age","female"))