| sensitivity_meditcv_profile | R Documentation |
Implements the medITCV robustness profile, a formal extension of Frank's ITCV to causal mediation. Computes pathway-specific fragility thresholds, applies the minimum robustness principle, and identifies the bottleneck pathway that governs indirect-effect fragility.
sensitivity_meditcv_profile(
x,
alpha = 0.05,
delta_grid = seq(0, 0.5, by = 0.01)
)
x |
A |
alpha |
Significance level. Default |
delta_grid |
Numeric vector of confounding impact values over which the
robustness profile is evaluated. Default |
An object of class "meditcv_profile": a named list with elements
a_path, b_path, meditcv_indirect, bottleneck,
robustness_profile, fragility_ratio, meditcv_detail, and alpha.
Frank, K. A. (2000). Impact of a confounding variable on a regression coefficient. Sociological Methods & Research, 29(2), 147–194.
sensitivity_meditcv(), plot_meditcv_profile(),
sensitivity_curvature()
data(sim_mediation)
fit <- robustmediate(
X ~ Z1 + Z2, M ~ X + Z1 + Z2, Y ~ X + M + Z1 + Z2,
data = sim_mediation, R = 20, verbose = FALSE
)
mp <- sensitivity_meditcv_profile(fit)
print(mp)
plot_meditcv_profile(mp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.