Skip to content

regmedint

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

v1.0.2 · Mar 6, 2026 · GPL-2

Description

This is an extension of the regression-based causal mediation analysis first proposed by Valeri and VanderWeele (2013) <doi:10.1037/a0031034> and Valeri and VanderWeele (2015) <doi:10.1097/EDE.0000000000000253>). 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) <doi:10.1097/EDE.0000000000001643>. 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.

Downloads

1.1K

Last 30 days

3688th

1.2K

Last 90 days

5.6K

Last year

Trend: +1014.7% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies Deriv MASS Matrix assertthat sandwich survival regmedint

Version History

new 1.0.2 Mar 10, 2026
updated 1.0.2 ← 1.0.1 diff Mar 5, 2026
updated 1.0.1 ← 1.0.0 diff Jan 12, 2024
updated 1.0.0 ← 0.2.1 diff Apr 5, 2022
updated 0.2.1 ← 0.2.0 diff May 11, 2021
updated 0.2.0 ← 0.1.0 diff Nov 15, 2020
new 0.1.0 May 10, 2020