Regression-Based Causal Mediation Analysis with Interaction and Effect Modification Terms

This is an extension of the regression-based causal mediation analysis first proposed by Valeri and VanderWeele (2013) and Valeri and VanderWeele (2015) ). It supports including effect measure modification by covariates(treatment-covariate and mediator-covariate product terms in mediator and outcome regression models) as proposed by Li et al (2023) . It also accommodates the original 'SAS' macro and 'PROC CAUSALMED' procedure in 'SAS' when there is no effect measure modification. Linear and logistic models are supported for the mediator model. Linear, logistic, loglinear, Poisson, negative binomial, Cox, and accelerated failure time (exponential and Weibull) models are supported for the outcome model.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("regmedint")

1.0.2 by Yi Li, 7 months ago


https://kaz-yos.github.io/regmedint/


Report a bug at https://github.com/kaz-yos/regmedint/issues


Browse source code at https://github.com/cran/regmedint


Authors: Kazuki Yoshida [ctb, aut] (ORCID: , Yi Li [cre, aut] , Maya Mathur [ctb]


Documentation:   PDF Manual  


GPL-2 license


Imports Deriv, MASS, Matrix, assertthat, sandwich, survival

Suggests boot, furrr, future, geepack, knitr, mice, mitools, modelr, purrr, rlang, rmarkdown, stringr, testthat, tidyverse, magic, formattable, kableExtra


Suggested by UKBAnalytica.


See at CRAN