Skip to content

regmedint

1.0.2Package record

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

0packages dependsuggested by 1
8Kdownloads / year
92.9%test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 5.1 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK13 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.2
README· In the repository, left out of the releaseVignettesYes · 6 · dynamicNEWSYes · 100% structured · does not mention 1.0.2Citation fileNoWebsiteYes · pkgdown
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%

Downloads

8K
CRAN downloads in the past year
Rank #3,953 · ~22/day · ~666/mo
Daily download trend is not available in this view yet.
90730 days
2.4K90 days
8K1 year
Compare downloads with other packages →
Also on100 r2u6 autocran76 c2d4u

Repository

37Stars
8Forks
2Open issues
0Open PRs
0Releases
1,121Commits
7Commit identities
causal-inferencemediation-analysis
1,121 commits · Last activity 2026-03-06 · +2.8% stars, 30d · The default branch showed an older version (1.0.1) than CRAN on 2026-10-21
Responsiveness
How these are sampled
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

2025-04-22 · 302026-09-26 · 37
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)

The repository owner accepts GitHub Sponsors

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-11-14

Reproducibility and dev environment (2)
data-raw/Makefile
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 2.10
Imports (6)
DerivMASSMatrixassertthatsandwichsurvival
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (3)
Maintainer since 1.0.1 (2024), Author · added in 0.2.0
Contributor, Author
Contributor

Previously maintained by Kazuki Yoshida (0.1.0 to 1.0.0).

Releases (6)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • unarchivedReturned to CRAN
    2026-03-06
  • 1.0.2Latest
    record
    2026-03-06 · current release · diff ↗ ·
    added 1 export
    fit_mreg
  • archivedRemoved from CRAN
    2025-12-22
    issues were not corrected despite reminders
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.1
    record
    2024-01-13 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.0
    record
    2022-04-06 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.1
    record
    2021-05-12 · diff ↗
  • 0.2.0
    record
    2020-11-16 · diff ↗
  • 0.1.0
    record
    2020-05-11
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("regmedint")
Li, Y., Mathur, M., & Yoshida, K. (2026). regmedint: Regression-Based Causal Mediation Analysis with Interaction and Effect Modification Terms (Version 1.0.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for regmedint version 1.0.2 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy