longjp/mediateR: Direct and Indirect Mediation Effects with Multiple Mediators

Computes direct and indirect effects (mediation analysis) with multiple potential mediators and various mediator-outcome models (linear, logistics, cox proportional hazards). The mediator structure does not need to be specified and confounders can be included in the model. The package has special functionality for computing mediation effects on the odds scale (useful for logistic models) and restricted mean scale (useful for the Cox proportional hazards model).

Getting started

Package details

AuthorJames P Long
Maintainer<jplong@mdanderson.org>
LicenseGPL (>= 2)
Version0.1.0
URL https://github.com/longjp/mediateR
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("longjp/mediateR")
longjp/mediateR documentation built on May 24, 2023, 12:30 p.m.