- Introduced by
- Hayes, A. F.; building on Preacher, Rucker & Hayes (2007) for moderated mediation and robust bootstrap inference
- Year
- 2007–2013
- Type
- Conditional indirect effect model with robust inference
- Family
- Multivariate analysis
What does it do?
Robust moderated mediation tests whether the indirect effect of X on Y through a mediator M changes with a moderator W. It estimates uncertainty with robust methods (percentile or bias-corrected bootstrap, heteroscedasticity-consistent standard errors, or M-estimation) so that conclusions are less sensitive to non-normal outcomes, outliers, and unequal error variance.
The model specification is the same as in conditional process analysis. The chosen robust option changes how the uncertainty of the coefficients is obtained (bootstrap or sandwich standard errors) or how the coefficients are estimated (M-estimation), and so how the conditional indirect effects are assessed.
The intuition behind the method
Moderated mediation asks whether the indirect route from a predictor to an outcome, through a mediator, is stronger in some contexts than in others. The uncertainty around each conditional indirect effect is a product of two regression coefficients, and normal-theory standard errors for such a product can be poor when residuals are skewed, heavy-tailed, or affected by outlying cases. Robust inference addresses this. Bootstrap intervals build the sampling distribution of the product a(W)·b(W) from resampled data instead of assuming it is normal. The substantive question stays the same; what changes is how much confidence the interval deserves when the data depart from normality.
History
Moderated mediation is analysed within the regression-based framework of conditional process analysis set out by Hayes (2022), cited on this page, which covers the conditional indirect effect and the index of moderated mediation used here. Robust moderated mediation is not a separately named method with its own originating paper. It is a practical label for applying robust inference, such as bootstrap intervals and heteroscedasticity-consistent standard errors, within that framework.
When to use it
Choose robust moderated mediation when you have a specified mechanism in which a moderator is expected to change the strength of an indirect effect, and the outcome or mediator departs visibly from normality. Skewness, heavy tails, or outlying cases are typical signs. Check residual Q-Q plots, Shapiro-Wilk results, and Cook's D or leverage values for the mediator and outcome regressions. Before reporting, compare the bootstrap intervals with and without the flagged cases, so that readers can see whether the conclusions depend on a few observations. Standard moderated mediation with bootstrap intervals is often adequate when the data look approximately normal, and the robust steps add little in that case. Small samples are a concern because bootstrap intervals for indirect effects can become unstable. Check the stability of the intervals and the precision the design can deliver, rather than relying on a fixed sample-size cut-off. If the moderator is categorical, multi-group SEM or ANCOVA-based approaches may be more appropriate. If the causal ordering X → M → Y is not theoretically defensible, robust estimation will not repair the model.
Limitations and considerations
- Bootstrap intervals need enough observations to represent the sampling distribution of a·b. With small samples the intervals can be unstable, so their stability should be checked.
- The approach assumes the mediator-then-outcome ordering is correctly specified. Resampling and robust variance estimators do not test that ordering.
- Robust estimation across the full moderated mediation chain, using M- or MM-estimation in both regression equations together with conditional indirect effects, is less standardised than bootstrap inference. It usually requires specialised code or packages, whose scope should be checked before use.
- Results depend on the moderator values at which the conditional indirect effect is probed. Different choices can give different impressions of the same fitted model.
- Adding further moderators or three-way interactions makes the model harder to interpret, and the number of conditional effects tested increases the risk of chance findings.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Bootstrap intervals for each conditional indirect effect do not rely on the normal approximation to the sampling distribution of a·b. That approximation underlies the Sobel test and is often poor for products of coefficients.
- HC sandwich standard errors address the assumption of constant residual variance in the mediator and outcome regressions, which is relevant when the spread of residuals changes across cases.
- The conditional-process structure is retained, so the indirect effect can be reported at substantively chosen moderator values rather than as a single average.
- When moderation operates on one path and W is continuous, the index of moderated mediation gives a single test of whether the indirect effect changes linearly with W.
- Hayes's PROCESS macro, used with the approach described in the 2022 book cited on this page, provides bootstrap confidence intervals for conditional indirect effects, so the most common robust option is straightforward to apply.
Applications
- Clinical trials with skewed symptom-severity outcomes, testing whether a treatment's effect on distress through a cognitive mediator differs by baseline severity, with bootstrap intervals reported at chosen severity values.
- Organisational studies in which a performance outcome contains outlying cases, examining whether leadership style affects performance through engagement, conditional on team psychological safety.
- Survey research on health behaviour with skewed intention scores, checking whether a campaign's effect operates through attitude change at different levels of prior knowledge.
- Educational research with non-normal achievement scores, asking whether an intervention's indirect effect through motivation depends on socioeconomic status.
How it works
How it works
The mediator M is regressed on X, the moderator W, and their product XW. The coefficient on XW tests whether W changes how strongly X is associated with M. If that coefficient is near zero, the a-path is not moderated.
Formula
M = a_0 + a_1 X + a_2 W + a_3 XW + e_1
The outcome Y is regressed on M, X, W, and the product MW. The MW term allows the b-path, the effect of M on Y, to vary with W. The coefficient on X is the effect of X on Y adjusted for the mediator and the moderator.
Formula
Y = b_0 + b_1 M + b_2 X + b_3 W + b_4 MW + e_2
The conditional indirect effect at a chosen value of W is the product of the moderated a-path and the moderated b-path, theta(W) = a(W) times b(W). From the two equations above, a(W) = a1 + a3·W and b(W) = b1 + b4·W, so theta(W) = (a1 + a3·W)(b1 + b4·W). When moderation acts on both paths, theta(W) contains a W-squared term. When moderation acts on only one path, theta(W) is linear in W. Because the effect depends on W, it is reported at specific moderator values, such as the mean and values one standard deviation either side of it, or at values with a clear substantive meaning. The probed values should be justified before the analysis.
Formula
\theta(W) = a(W) \cdot b(W)
Robust inference replaces normal-theory standard errors with percentile or bias-corrected accelerated (BCa) bootstrap intervals computed from a large number of resamples; 5,000 resamples is a common default. The resampling makes no distributional assumption about the product of the two coefficients. The alternatives address different problems, so the choice should follow the diagnosed issue. Bootstrap intervals address the sampling distribution of the product a·b. Heteroscedasticity-consistent (sandwich) standard errors address non-constant residual variance in the mediator and outcome regressions. M- or MM-estimation addresses outliers in those regressions. A single analysis may need more than one of these, and the choice should be stated when results are reported.
When moderation operates on only one path and W is continuous, the index of moderated mediation is the slope that describes how the conditional indirect effect changes linearly with W. For moderation on the a-path only, the index is a3·b1. For moderation on the b-path only, it is a1·b4. Its bootstrap confidence interval is used to check whether that slope differs from zero. An interval that excludes zero indicates that the indirect effect varies with W in a linear way. When moderation acts on both paths, theta(W) has a quadratic term, and a single linear index does not summarise how the indirect effect changes across W.
Common pitfalls
- Using the Sobel test for the indirect effect. It assumes the product a·b is normally distributed, which generally does not hold, so bootstrap intervals are the usual alternative here.
- Treating a significant XW interaction in the mediator equation as proof of moderated mediation. The conditional indirect effect itself must differ across W, so it has to be evaluated at several moderator values or through the index.
- Forming the XW and MW terms from unscaled predictors. Mean-centring X and W before creating the products reduces collinearity and keeps the lower-order coefficients interpretable.
- Reporting the conditional indirect effect at only one value of W, often the mean, and so missing how the indirect effect varies across the moderator's range.
- Applying robust estimation to a model with weak theoretical grounding. Robust methods address distributional and outlier problems, not model specification.
Frequently asked questions
When should I prefer robust moderated mediation over standard moderated mediation?
When diagnostics such as Q-Q plots or the Shapiro-Wilk test suggest non-normal residuals, or when Cook's D or leverage statistics flag influential cases that distort the regression estimates. If the data look clean and approximately normal, bootstrap intervals from standard moderated mediation already address most of the inferential concern, and the extra robust steps add little.
How many bootstrap resamples should I use?
5,000 resamples is a common default. BCa intervals may need more resamples for the acceleration correction to be stable. Check that the interval endpoints change little across repeated runs, and report the number of resamples used so readers can judge precision.
Does the PROCESS macro handle robust moderated mediation?
Hayes's PROCESS macro provides bootstrap confidence intervals for conditional indirect effects, which is the most widely used robust inference option for this model. Robust M- or MM-estimation across both regression equations is less standard and usually needs specialised software. Check the scope of any package against your model, particularly if you need robust estimation on both paths.
What is the index of moderated mediation, and when do I report it?
The index of moderated mediation is the slope that describes how the conditional indirect effect changes with the moderator W. It is meaningful when W is continuous and moderation operates on only one path: a3·b1 for moderation on the a-path, and a1·b4 for moderation on the b-path. Report it with its bootstrap confidence interval; an interval excluding zero suggests the indirect effect changes linearly with W. If moderation operates on both paths, theta(W) includes a W-squared term, and the single index is not sufficient on its own.
Can I use robust moderated mediation with categorical moderators?
Yes, with dummy coding. If the moderator is categorical, for example gender or experimental condition, code it as one or more dummy variables and use them as W. The conditional indirect effects are then estimated for each category. Multi-group SEM is an alternative that may be preferable when you also want to test measurement invariance across groups.
Related methods
Sources
Hayes, A. F. (2022). Introduction to Mediation, Moderation, and Conditional Process Analysis: A Regression-Based Approach (3rd ed.). Guilford Press.
ISBN: 978-1462549030Yuan, K.-H., & Bentler, P. M. (2002). On robustness of the normal-theory based asymptotic distributions of three reliability coefficient estimates. Psychometrika, 67(2), 251–259.
Open DOI reference