Regression-Based Causal Mediation Analysis with Interaction and Effect Modification Terms
Overview
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.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-07
- OK13 OK2026-03-10
Documentation
- Help pages
- 29 (1 internal)includes a package overview page
- Examples that run
- 100%8 run in a plain check
- Exported functions with examples
- 50%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Implementation of extended formulas when there are effect measure modifiers HTML
- Implementation of formulas HTML
- Introduction to user interface functions HTML
- Using bootstrapping with regemedint HTML
- Using multiple imputation with regmedint HTML
- Validation of extended formuals with effect modification using bootstrap HTML
Downloads
Repository
- PRs merged (all time)
- 57%
- Median days to close, 50 most recently updated closed issues
- 1,362
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/kaz-yos/regmedint on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
The repository owner accepts GitHub Sponsors
Dependencies
Installing regmedint adds 5 packages (3 with compiled code, 3.9 MB of source tarballs). Heaviest: Rcpp 1.8 MB, sandwich 1.4 MB, zoo 675 KB.
Code & Tests
Datasets
People & History
Previously maintained by Kazuki Yoshida (0.1.0 to 1.0.0).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- unarchivedReturned to CRAN2026-03-06
- 1.0.2Latest
- archivedRemoved from CRAN2025-12-22issues were not corrected despite reminders
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.12024-01-13 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.0.02022-04-06 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.2.12021-05-12 · diff ↗
- 0.2.02020-11-16 · diff ↗
- 0.1.02020-05-11
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-05-11
- Total releases
- 6 / 6 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 2.4 KB / 1 file
- Download size
- 516 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("regmedint")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.