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.

Package details

AuthorSubir Hait [aut, cre] (ORCID: <https://orcid.org/0009-0004-9871-9677>)
MaintainerSubir Hait <haitsubi@msu.edu>
LicenseMIT + file LICENSE
Version0.1.1
URL https://github.com/causalfragility-lab/RobustMediate
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("RobustMediate")

Try the RobustMediate package in your browser

Any scripts or data that you put into this service are public.

RobustMediate documentation built on April 16, 2026, 5:08 p.m.