RobustMediate: Causal Mediation Analysis with Diagnostics and Sensitivity Analysis

Provides tools for causal mediation analysis with continuous treatments using inverse probability weighting (IPW). Estimates natural direct and indirect effects over a user-defined treatment grid and supports flexible dose-response mediation analysis. Includes diagnostic procedures for assessing covariate balance in both treatment and mediator models using standardized mean differences. Implements pathway-specific extensions of the impact threshold for a confounding variable (ITCV; Frank, 2000 <doi:10.1177/0049124100029002001>) adapted to mediation settings. Provides joint sensitivity analysis combining E-values (VanderWeele and Ding, 2017 <doi:10.7326/M16-2607>) and violations of sequential ignorability (Imai, Keele, and Yamamoto, 2010 <doi:10.1214/10-STS321>). Additional utilities include visualization of dose-response mediation functions, robustness profiles, fragility summaries, and formatted outputs for applied research. Supports clustered data structures and multiple outcome families.

Version: 0.1.1
Depends: R (≥ 4.1.0)
Imports: cli, ggplot2 (≥ 3.4.0), rlang, scales, stats, broom
Suggests: covr, dplyr, knitr, lme4, pkgdown, rmarkdown, splines, testthat (≥ 3.0.0), tidyr
Published: 2026-04-16
DOI: 10.32614/CRAN.package.RobustMediate (may not be active yet)
Author: Subir Hait ORCID iD [aut, cre]
Maintainer: Subir Hait <haitsubi at msu.edu>
BugReports: https://github.com/causalfragility-lab/RobustMediate/issues
License: MIT + file LICENSE
URL: https://github.com/causalfragility-lab/RobustMediate
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: RobustMediate results

Documentation:

Reference manual: RobustMediate.html , RobustMediate.pdf
Vignettes: Getting Started with RobustMediate (source, R code)

Downloads:

Package source: RobustMediate_0.1.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=RobustMediate to link to this page.