- Introduced by
- Andrew F. Hayes (PROCESS framework); Preacher, Rucker & Hayes (moderated mediation)
- Year
- 2018
- Type
- Regression-based conditional process model
What does it do?
Conditional process analysis is a regression-based framework that combines mediation and moderation in one model.
Andrew F. Hayes documents it in *Introduction to Mediation, Moderation, and Conditional Process Analysis* (2nd ed., 2018), where it is implemented through the PROCESS macro. The framework tests whether the indirect effect of X on Y through a mediator M changes across levels of a moderator W. Its key quantities are the conditional indirect effect and the index of moderated mediation, assessed with bootstrap confidence intervals.
The intuition behind the method
Mediation asks how X reaches Y through a mediator M; moderation asks for whom or under what conditions an effect holds. Conditional process analysis asks both at once: it lets the strength of the mediated pathway depend on a moderator W, so the indirect effect can be strong for some people and weak or absent for others. The index of moderated mediation, a₃·b in the model's notation, is a single number that summarises how much the indirect effect changes for each one-unit change in W.
History
The approach combines the analysis of mediation and moderation in one model. Preacher, Rucker, and Hayes (2007) clarified conflicting definitions of moderated mediation, set out how to estimate and test conditional indirect effects, and advocated bootstrapping where possible, with probing methods based on simple slopes and the Johnson-Neyman technique. Hayes's 2018 book presents the regression-based PROCESS framework, which uses numbered model templates to specify where moderation enters the mediated pathway.
When to use it
Choose this approach when your theory states that a mediated mechanism itself depends on a moderator, so the question is whether the indirect effect of X on Y through M is stronger or weaker across W. The model is linear and fits a continuous outcome as specified here; binary or ordinal outcomes need a different model. The method relies on bootstrap inference, so treat the 100-observation minimum listed for this method as a rough guide rather than a validated cut-off. Power depends on the size of the paths being tested, so a sample at or above that level may still be too small to detect a modest index. Avoid the approach when the sample is well below that level. Avoid it also when the mediator is measured with substantial error, where a latent-variable SEM may be better suited. If the question is only whether W moderates the direct effect of X, the equations shown do not address it and a different specification is needed.
Limitations and considerations
- Bootstrap intervals become unreliable in small samples. The 100-observation minimum listed for this method is an approximate guide, not a validated cut-off, so conditional indirect effects from small samples should be read cautiously.
- The specification is fixed: b and c′ are not allowed to depend on W, so the index a₃·b assumes that only the X→M path is moderated.
- Error in the observed mediator biases the estimated paths, and substantial error may call for a latent-variable structural equation model instead.
- Reading the indirect effects causally requires assumptions that the model cannot test. X, M and Y must be temporally ordered; the X→M, M→Y and X→Y relations must be free of unmeasured confounding; the linear form must be correctly specified; and the outcome equation must contain no X×M interaction. Cross-sectional data cannot establish temporal order, so with such data the conditional indirect effects should be read as associations rather than causal effects (see Hayes, 2018, pp. 172–183 on confounding and causal order in mediation analysis).
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Combines mediation and moderation in one regression framework, so a conditional mechanism can be tested directly.
- Bootstrap confidence intervals do not assume the indirect effect, a product of coefficients, is normally distributed.
- The index of moderated mediation, a₃·b, tests whether the indirect effect depends on W, rather than inferring this from the interaction coefficient a₃ alone.
Applications
- Testing whether the effect of an intervention on an outcome through a psychological mechanism differs by a contextual or individual moderator, using the X·W term in the mediator equation.
- Examining whether the effect of a predictor on a mediator, such as an exposure on an intermediate behaviour, depends on a group characteristic, which the a₃ coefficient tests.
- Assessing whether a mediated effect is concentrated at particular values of W, by reporting the conditional indirect effect at chosen levels of the moderator.
How it works
How it works
The mediator M is regressed on X, W, and their product X·W, so the slope of X on M (a₁ + a₃W) changes with W. The outcome Y is regressed on M and X, giving the M→Y path b and the direct path c′. Because the outcome equation contains no X·W term, the M→Y and X→Y paths are not allowed to vary with W in this specification.
Formula
M = i_M + a_1 X + a_2 W + a_3 (X \cdot W) + e_M, \qquad Y = i_Y + b\,M + c' X + e_Y
Each equation is fitted by ordinary least squares, which estimates the linear equations as written. Before forming X·W, it is common practice to mean-centre W. This makes a₁ the effect of X at the average value of W, while the interaction coefficient a₃ and the index a₃·b are unchanged by the centring (see Hayes, 2018, pp. 371–372). The conditional indirect effect at a given value of W is (a₁ + a₃W)·b, and the index of moderated mediation a₃·b measures how this indirect effect changes with W. Inference on these products uses bootstrap resampling rather than normal-theory standard errors, because products of coefficients are typically not normally distributed; an effect is judged present when its bootstrap confidence interval excludes zero. The equations shown are linear, so they are not by themselves suited to binary or ordinal outcomes, which require a model with an appropriate link function.
Formula
\text{Indirect}(W) = (a_1 + a_3 W)\,b, \qquad \text{Index of moderated mediation} = a_3 bCommon pitfalls
- Using too few bootstrap resamples, which makes the confidence interval unstable. Use a large number of resamples and report how many were used.
- Concluding moderated mediation from a significant a₃ alone. The index a₃·b also depends on b, so test the index and its bootstrap interval.
- Treating an indirect effect as present when its bootstrap confidence interval includes zero.
- Assuming the direct effect varies with W. The outcome equation shown has no X·W term, so the direct path c′ is not modelled as conditional here.
- Ignoring measurement error in the mediator, which can distort the estimated pathways.
Frequently asked questions
What is the index of moderated mediation?
It is the product a₃·b, a single quantity that captures how much the indirect effect of X on Y through M changes for a one-unit change in the moderator W. If its bootstrap confidence interval excludes zero, the indirect effect is judged to vary with W.
Why use bootstrapping instead of a normal-theory test?
The indirect effect is a product of coefficients and is typically not normally distributed, so classical standard errors can be inaccurate. Bootstrapping resamples the data to build an empirical confidence interval; use a large number of resamples and report how many were used.
How large a sample do I need?
The page lists 100 observations as a minimum, which is a rough guide rather than a validated threshold. Power also depends on the size of the paths being tested. With smaller samples the bootstrap interval may be unreliable, and a causal mediation approach may be worth considering.
What if my variables have measurement error?
Error in the observed mediator biases the path estimates, because the models treat the mediator as measured without error. When that error is substantial, a latent-variable structural equation model, including a Bayesian SEM, may be preferable, provided the construct has multiple indicators and the model is identified.
Related methods
Sources
Hayes, A. F. (2018). Introduction to Mediation, Moderation, and Conditional Process Analysis: A Regression-Based Approach (2nd ed.). The Guilford Press.
ISBN: 978-1462534654Preacher, K. J., Rucker, D. D., & Hayes, A. F. (2007). Addressing Moderated Mediation Hypotheses: Theory, Methods, and Prescriptions. Multivariate Behavioral Research, 42(1), 185-227.
Open DOI referenceHayes (2018), Introduction to Mediation, Moderation, and Conditional Process Analysis, pp. 172–183 (confounding and causal order in mediation analysis) and pp. 371–372 (mean centring in conditional process analysis)