Software‎ > ‎


The package offers functions to estimate and perform sensitivity analysis to unobserved confounding for direct and indirect effects when the mediator and outcome are both binary. The estimation and sensitivity analysis are parametric, based on probit regression models. Sensitivity analysis is implemented for unobserved confounding of the exposure-mediator, mediator-outcome and exposure-outcome relationships.
Package: sensmediation
To install, first make sure the package devtools is installed and loaded (install.packages("devtools"), library(devtools)). Then save the package folder and set the working directory (setwd()) to the search path where the package file is saved. Finally install and load the package (install("sensmediation"), load(sensmediation)).
Anita Lindmark,
Oct 31, 2017, 12:39 AM