The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Robust causal mediation analysis with embedded diagnostics, dose-response curves, pathway-specific sensitivity (medITCV), and a novel bivariate sensitivity contour.
| Function | What it gives you |
|---|---|
robustmediate() |
Fit treatment / mediator / outcome models, compute IPW weights, NDE/NIE/TE curves with bootstrap CIs, and the full sensitivity surface in one call |
plot_balance() |
Dual love plot: covariate balance before/after weighting for both pathways simultaneously |
plot_mediation() |
Dose-response curves of NDE, NIE, TE with pointwise confidence bands |
plot_sensitivity() |
Novel 2-D robustness map: E-value x Imai rho — does not exist elsewhere in R |
sensitivity_meditcv() |
Pathway-specific mediation ITCV (medITCV) for a-path and b-path |
plot_meditcv() |
Robustness corridor plot for each pathway |
sensitivity_meditcv_profile() |
Minimum robustness principle + bottleneck identification |
plot_meditcv_profile() |
Fragility profile as confounding impact increases |
fragility_table() |
Publication-ready pathway decomposition table |
diagnose() |
Formatted report with a paste-ready Results paragraph |
# Development version from GitHub
# install.packages("pak")
pak::pkg_install("causalfragility-lab/RobustMediate")library(RobustMediate)
fit <- robustmediate(
treatment_formula = X ~ Z1 + Z2,
mediator_formula = M ~ X + Z1 + Z2,
outcome_formula = Y ~ X + M + Z1 + Z2,
data = mydata,
R = 500
)
plot_balance(fit) # love plot
plot_mediation(fit) # NDE / NIE dose-response curve
plot_sensitivity(fit) # E-value x rho contour
plot(fit, type = "meditcv") # medITCV robustness corridor
plot(fit, type = "meditcv_profile") # fragility profile
fragility_table(fit) # pathway decomposition
diagnose(fit) # paste into Results sectionEValue plots E-values onlymediation plots rho sensitivity onlycobalt / WeightIt do love plots for
treatment onlyRobustMediate combines all three into one coherent workflow tailored to continuous-treatment mediation, and adds:
Bug reports and feature requests via GitHub Issues.
MIT
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.