Four-Way Decomposition

Statistics
Introduced by
Tyler J. VanderWeele
Year
2014
Type
Counterfactual decomposition pipeline for total effects
Family
Causal inference / mediation and interaction

What does it do?

The four-way decomposition, introduced by Tyler VanderWeele in 2014, unifies mediation and interaction analysis by partitioning a total causal effect into four mutually exclusive components: a controlled direct effect, a reference interaction, a mediated interaction, and a pure indirect effect.

Each component has a distinct meaning: the first involves neither mediation nor interaction, the second interaction without mediation, the third both together, and the fourth mediation without interaction. Formalized in counterfactual notation and treated at book length in VanderWeele's 2015 monograph, the approach lets social epidemiologists ask how much of an exposure's effect runs through a mediator, how much requires the exposure and mediator to act together, and how much is direct.

The intuition behind the method

Suppose smoking raises disease risk and you want to know how. Part of the effect may be direct, not passing through the intermediate factor you measured. Part may run through that factor, which the exposure changes and which then changes risk. A third possibility is that the factor matters only in people who have the exposure, so the two act jointly; this joint action is interaction, and it can operate whether or not the exposure actually moved the factor, or only when it did. Earlier analyses often forced a choice between a mediation account and an interaction account, whereas the four-way decomposition assigns the total effect to four additive pieces so that each contribution can be seen separately.

History

Mediation analysis and effect-modification (interaction) analysis developed largely as separate traditions: one asks how an effect is transmitted, the other for whom or under what conditions it operates. Tyler VanderWeele's 2014 Epidemiology paper 'A unification of mediation and interaction: a four-way decomposition' showed that any total effect partitions into a controlled direct effect, a reference interaction, a mediated interaction and a pure indirect effect, and that earlier decompositions in the literature are special cases of this result. VanderWeele's 2015 monograph Explanation in Causal Inference, published by Oxford University Press, develops the framework at book length. Software implementing the decomposition includes the R packages CMAverse and mediation.

When to use it

Use the four-way decomposition when you have an exposure, a single mediator, and an outcome, and you want to understand the mechanism of an effect more finely than a simple direct-versus-indirect split allows — in particular when you suspect the exposure and mediator may interact. It is the right tool when distinguishing 'effect through the mediator' from 'effect that requires the exposure and mediator together' is scientifically or policy-relevant, for example to judge whether intervening on the mediator would help and for whom. It requires the standard mediation identification assumptions: no unmeasured confounding of the exposure-outcome, mediator-outcome, and exposure-mediator relationships, and no mediator-outcome confounder affected by exposure. Prefer simpler two-way natural-effect decomposition when interaction is implausible or you lack power to estimate it. Avoid it when there are multiple causally ordered mediators or strong exposure-induced mediator-outcome confounding, which call for interventional or path-specific extensions.

Limitations and considerations

  • Relies on strong, partly untestable no-unmeasured-confounding assumptions for exposure-outcome, mediator-outcome, and exposure-mediator relations.
  • Invalid when a mediator-outcome confounder is itself affected by the exposure, which requires interventional or path-specific methods.
  • Designed for a single mediator; multiple causally ordered mediators need extensions and the simple four-way split no longer applies.
  • Interpretation of the controlled direct effect requires a chosen reference level for the mediator, and every component also depends on the reference exposure level a*. Results can depend on these choices, so both should be reported and their influence checked.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Unifies mediation and interaction in one exhaustive, additive decomposition rather than treating them as competing analyses.
  • Yields four mutually exclusive components that sum exactly to the total effect, giving a complete mechanistic accounting.
  • Nests the standard two-way (direct/indirect) and three-way decompositions as special cases, with a clear interpretation of each piece.
  • Estimable from regression models with an interaction term when the outcome and mediator models are linear, and supported by standard mediation software.

Applications

  • Disentangling how much of a social or behavioral exposure's effect on health runs through a specific biological or behavioral mediator.
  • Identifying mediated interaction to determine whether an intervention on the mediator would benefit primarily the exposed.
  • Quantifying gene-environment mechanisms where a genetic factor and an environmental exposure act jointly.
  • Refining policy analysis by separating the controlled direct effect (remaining if the mediator were fixed) from mediated pathways.
  • Clarifying mechanistic claims in life-course epidemiology where mediators and effect modifiers coincide.

How it works

How it works

1

The decomposition is built on potential outcomes. The analyst defines the outcome a person would have under a given exposure level and a given mediator value, and the mediator value a person would have under a given exposure level. These counterfactuals make the causal questions precise: comparing outcomes while holding the mediator fixed isolates direct effects, while letting the mediator respond to exposure brings mediation into play. Setting up this notation is what allows mediation and interaction, usually treated as separate ideas, to be expressed in one common language.

Formula
Y_{am} = \text{outcome under exposure } a \text{ and mediator } m;\quad M_a = \text{mediator under exposure } a
2

The central result writes the total effect, the contrast between outcomes under exposure and under no exposure with the mediator taking its natural value in each case, as the sum of four components. In the formula these are grouped into three terms: the controlled direct effect, a middle term containing the reference and mediated interaction components together, and a final term capturing the effect transmitted through the mediator. Because the components are constructed to be mutually exclusive and to sum exactly to the total effect, every part of the effect is assigned to exactly one mechanism. The components are conditional on the covariates c, as the formulas indicate; population-level (marginal) versions require averaging over the distribution of c, typically by standardization.

Formula
Y_1 - Y_0 = \underbrace{(Y_{1m^*}-Y_{0m^*})}_{\text{CDE}} + \underbrace{(Y_{1M_0}-Y_{1m^*})-(Y_{0M_0}-Y_{0m^*})}_{\text{ref. + med. interaction}} + \underbrace{(Y_{1M_1}-Y_{1M_0})}_{\text{pure indirect}}
3

The controlled direct effect measures how much the outcome would change with exposure if the mediator were fixed, by intervention, at a reference level for everyone. It captures the part of the effect that does not operate through the mediator and does not require any interaction, the 'pure' direct channel. Its value depends on the chosen mediator reference level m*. This is the component most directly relevant to interventions that could block the mediating pathway, since it tells you how much harm would remain even if the mediator were held at its reference value.

Formula
\text{CDE}(m^*) = E[Y_{1m^*} - Y_{0m^*} \mid c]
4

The two interaction terms quantify the effect attributable to the exposure and mediator working jointly. The reference interaction is the interactive effect that would operate even if the exposure did not change the mediator; it depends on the mediator's distribution under the reference exposure level. The mediated interaction is the part that requires both that the exposure changed the mediator and that the exposure and mediator interact, so it is simultaneously mediation and interaction. Separating these makes explicit that interaction can contribute to an effect with or without the mediator actually being moved by exposure.

Formula
\text{INT}_{\text{ref}} = (\theta_3)(E[M_0\mid a^*,c]-m^*);\ \ \text{INT}_{\text{med}} = (\theta_3)(E[M_1\mid a,c]-E[M_0\mid a^*,c])
5

In practice the components are estimated from two regression models: an outcome model including the exposure, the mediator, their product term, and confounders, and a mediator model regressing the mediator on the exposure and confounders. The closed-form expressions given here are written for linear (identity-link) outcome and mediator models on the difference scale; this page does not give closed forms for other outcome scales. VanderWeele gives expressions that combine the outcome-model coefficients, including the exposure-mediator interaction coefficient, with the mediator model to produce each component, and confidence intervals can be obtained by the delta method or the bootstrap. Omitting the product term forces the interaction components to zero by construction, so it must be retained whenever interaction is of interest. Each component also depends on the reference exposure level a* and the mediator reference level m*, both of which should be stated when results are reported.

Formula
E[Y\mid a,m,c]=\theta_0+\theta_1 a+\theta_2 m+\theta_3 am+\theta_4' c;\quad E[M\mid a,c]=\beta_0+\beta_1 a+\beta_2' c

Common pitfalls

  • Omitting the exposure-mediator product term from the outcome model, which sets the interaction components to zero by construction and hides them.
  • Ignoring a mediator-outcome confounder that is itself affected by exposure, which undermines identification of the natural-effect components.
  • Interpreting a large mediated proportion causally without addressing unmeasured mediator-outcome confounding.
  • Reporting only a single direct/indirect split when interaction is present, thereby misattributing joint effects to pure mediation.

Frequently asked questions

What are the four components and how do they relate to mediation and interaction?

The four are: the controlled direct effect (neither mediation nor interaction — the effect with the mediator fixed at a reference), the reference interaction (interaction but no mediation — the joint effect that operates even without the exposure changing the mediator), the mediated interaction (both mediation and interaction — requires the exposure to change the mediator and the two to interact), and the pure indirect effect (mediation but no interaction — the effect transmitted through the mediator absent any interaction). They are mutually exclusive and sum to the total effect, so together they account for every part of the exposure's impact through these two lenses.

How does the four-way decomposition relate to natural direct and indirect effects?

It refines them. The familiar two-way split into natural direct and natural indirect effects can be recovered by grouping the four components: the natural direct effect equals the controlled direct effect plus the reference interaction, and the natural indirect effect equals the pure indirect effect plus the mediated interaction. The four-way version goes further by revealing how much of each natural effect is due to interaction versus 'pure' mechanism. This is why VanderWeele describes it as a unification — the standard mediation quantities are sums of its building blocks.

What assumptions are needed to interpret the components causally?

Beyond consistency and positivity, the decomposition requires three no-unmeasured-confounding conditions: for the exposure-outcome, mediator-outcome, and exposure-mediator relationships. A separate and critical condition is that there is no mediator-outcome confounder that is itself affected by the exposure. This last condition is the one most often violated in observational social-epidemiologic data; when it fails, the natural-effect components are not identified and interventional or path-specific decompositions are needed instead. Sensitivity analyses for unmeasured confounding are advisable. The related page on E-value sensitivity addresses a single exposure-outcome association and does not by itself cover the mediator-related assumptions, which need mediator-specific sensitivity analysis.

Related methods

Sources

  1. VanderWeele, T. J. (2014). A unification of mediation and interaction: a four-way decomposition. Epidemiology, 25(5), 749-761.

    Open DOI reference
  2. VanderWeele, T. J. (2015). Explanation in Causal Inference: Methods for Mediation and Interaction. New York: Oxford University Press.

    ISBN: 9780199325870