xiangzhou09/rwrmed: Regression-with-residuals (RWR) Analysis of Causal Mediation

This packages implements the regression-with-residuals (RWR) approach to causal mediation analysis, allowing for post-treatment confounding of the mediator-outcome relationship. The rwrmed() function fits user-specified mediator and outcome models with residualized post-treatment confounders. The decomp() function implements a two-component decomposition of the total effect into the randomized interventional analogues of the natural direct effect (rNDE) and the natural indirect effect (rNIE), as well as a four-component decomposition of the total effect into the controlled direct effect (CDE) and the randomized analogues of the reference interaction effect (rINTREF), the mediated interaction effect (rINTMED), and the pure indirect effect (rPIE).

Getting started

Package details

Maintainer
LicenseGPL (>= 3)
Version0.1.0
URL http://github.com/xiangzhou09/rwrmed
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("xiangzhou09/rwrmed")
xiangzhou09/rwrmed documentation built on May 27, 2019, 2:08 p.m.