Papers
Topics
Authors
Recent
Search
2000 character limit reached

Two-Part Mediation Effect Analysis

Updated 7 July 2026
  • Two-Part Mediation Effect is a framework that partitions an exposure’s effect into two distinct components, adapting to different causal questions and intervention settings.
  • It finds application in controlled interventions, quantile mediation, zero-inflated models, and ratio-scale analyses, offering flexible approaches to causal decomposition.
  • Key methodologies include parametric g-computation, doubly robust estimators, and machine learning techniques to reliably estimate these distinct causal components.

Two-Part Mediation Effect denotes a family of causal decompositions in which the effect of an exposure on an outcome is partitioned into two principal components, but the components depend on the estimand, intervention semantics, and data-generating structure. In the cited literature, the two parts include the natural direct effect and natural indirect effect, the controlled direct effect and scaled controlled indirect effect, a numerical-change and a binary-change component for zero-inflated mediators, and adding-versus-subtracting ratio-scale decompositions in vaccine trials (Sun et al., 2020, Chen et al., 2024, Jiang et al., 2023, Fay et al., 2022). This suggests that the phrase is best understood as a context-dependent mediation framework rather than a single universally fixed quantity.

1. Conceptual scope

Across the literature, a two-part mediation decomposition always separates an exposure effect into two analytically distinct pieces, but the target of the split changes with the causal question. In classical mediation, the split is direct versus indirect. In controlled-intervention formulations, the split is a manipulation-specific direct effect versus a mediator-specific indirect contribution. In zero-inflated mediator models, the indirect effect itself is split into a numerical component and a binary component. In ratio-scale vaccine analyses, the total ratio effect is partitioned multiplicatively rather than additively.

Setting Two parts Representative decomposition
Controlled single-mediator intervention CDEk(0)CDE_k(0), sCIEksCIE_k TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k
Quantile mediation qNDEτqNDE_\tau, qNIEτqNIE_\tau qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau
Zero-inflated mediator NIEnumericalNIE_{\text{numerical}}, NIEbinaryNIE_{\text{binary}} NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}
Vaccine ratio-scale mediation θI\theta_I, sCIEksCIE_k0 sCIEksCIE_k1

The main technical distinctions are whether the decomposition is additive or multiplicative, whether it is defined by natural or controlled interventions, whether it relies on cross-world counterfactuals, and whether interaction is folded into one of the two parts or isolated separately in an extended decomposition.

2. Controlled decompositions with multiple mediators

A particularly explicit use of the term is the clinically oriented framework for multiple manipulable mediators with arbitrary causal dependencies developed in “Clinically Relevant Mediation Analysis using Controlled Indirect Effect” (Sun et al., 2020). The setup uses a binary exposure sCIEksCIE_k2, outcome sCIEksCIE_k3, binary mediators sCIEksCIE_k4, and baseline covariates sCIEksCIE_k5. Mediators may form any directed acyclic graph, with recursive counterfactual construction

sCIEksCIE_k6

For mediator sCIEksCIE_k7, the potential outcome under a single-mediator intervention is

sCIEksCIE_k8

The total effect is

sCIEksCIE_k9

and the controlled indirect effect for mediator TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k0 at exposure level TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k1 is

TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k2

The corresponding manipulation-specific direct effect is

TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k3

and the scaled controlled indirect effect is

TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k4

The defining two-part decomposition is

TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k5

This formulation differs from natural direct and indirect effects because it avoids cross-world counterfactuals entirely and focuses on manipulating one mediator at a time. Identification is based on consistency, positivity, and single-world ignorability,

TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k6

with the key g-formula

TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k7

Estimation can proceed by parametric g-computation or by the doubly robust estimators

TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k8

TE=CDEk(0)+sCIEkTE = CDE_k(0) + sCIE_k9

The paper uses nested cross-validation and selective machine learning to choose among penalized logistic/linear regression, linear SVM, random forest, and XGBoost, with confidence intervals via bootstrap.

The empirical illustrations emphasize the decision-theoretic role of the decomposition. In the framing dataset, Emotion had qNDEτqNDE_\tau0, approximately qNDEτqNDE_\tau1 of the total effect, while Perceived Harm had qNDEτqNDE_\tau2, approximately qNDEτqNDE_\tau3 of the total effect. In the HIV–Brain Age cohort, Hyperlipidemia had qNDEτqNDE_\tau4 and qNDEτqNDE_\tau5, which the paper interprets as indicating substantial clinical benefit from treating hyperlipidemia. The framework therefore ranks mediators by qNDEτqNDE_\tau6 when the goal is to reduce the exposure’s total effect by treating one mediator.

3. Direct–indirect decompositions on quantile and moderator-varying scales

In classical mediation language, the two parts are the direct effect and the indirect effect. “Quantile Mediation Analytics” extends this split from the mean to the outcome distribution by defining

qNDEτqNDE_\tau7

qNDEτqNDE_\tau8

with

qNDEτqNDE_\tau9

Under a generalized structural equation model built via a Gaussian copula, the paper derives closed-form expressions in terms of transformed probabilities qNIEτqNIE_\tau0, and shows that in the special case where qNIEτqNIE_\tau1 and qNIEτqNIE_\tau2 are normal, qNIEτqNIE_\tau3 and qNIEτqNIE_\tau4 do not depend on qNIEτqNIE_\tau5 and coincide with mean-based mediation counterparts (Chen et al., 2024).

A related but older quantile perspective decomposes the qNIEτqNIE_\tau6-specific indirect effect into three interpretable factors. “A novel quantile-based decomposition of the indirect effect in mediation analysis” defines a local representation

qNIEτqNIE_\tau7

where qNIEτqNIE_\tau8 is the qNIEτqNIE_\tau9-th quantile effect of the exposure on the mediator, qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau0 is the outcome sensitivity to mediator rank qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau1, and qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau2 is the mediator’s conditional density at the corresponding quantile (Geraci et al., 2017). In the infant mortality application, this decomposition showed that smoking strongly shifted the birthweight distribution, but for sudden infant death syndrome the estimated qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau3 was approximately zero across deciles, so the mediated effect through birthweight was negligible.

Moderator-varying formulations preserve the same two-part logic on the link scale. In the generalized varying coefficient mediation model,

qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau4

where the coefficient functions vary smoothly with moderator qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau5 (Liu et al., 2022). In the entrepreneurial withdrawal analysis, the estimated indirect effect declined with self-efficacy because the stress qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau6 depressed affect path weakened as self-efficacy increased.

4. Zero-inflated, compositional, and mixture mediators

For zero-inflated mediators, the indirect effect itself acquires a two-part structure. “A Novel Causal Mediation Analysis Approach for Zero-Inflated Mediators” represents the mediator by its positive part qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau7 and the indicator qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau8, and defines

qTEτ=qNDEτ+qNIEτqTE_\tau = qNDE_\tau + qNIE_\tau9

with

NIEnumericalNIE_{\text{numerical}}0

NIEnumericalNIE_{\text{numerical}}1

Under the linear outcome model

NIEnumericalNIE_{\text{numerical}}2

the binary component captures mediation through zero versus non-zero status, whereas the numerical component captures mediation through changes in the positive part of the mediator (Jiang et al., 2023).

For microbiome relative abundances, MarZIC uses the same logic in a compositional setting. The outcome model

NIEnumericalNIE_{\text{numerical}}3

yields

NIEnumericalNIE_{\text{numerical}}4

where NIEnumericalNIE_{\text{numerical}}5 is mediation through nonzero abundance and NIEnumericalNIE_{\text{numerical}}6 is mediation through presence probability. The framework explicitly models false zeros through the limit-of-detection rule

NIEnumericalNIE_{\text{numerical}}7

and estimates parameters by maximum likelihood with numerical integration over latent positive values when an observed zero may be false (Wu et al., 2019).

“Causal Mediation Analysis for Zero-inflated Mixture Mediators” generalizes this to finite mixtures, allowing zero-inflated log-normal mixture, zero-inflated Poisson mixture, and zero-inflated negative binomial mixture families. The mediator density is

NIEnumericalNIE_{\text{numerical}}8

and the paper again decomposes

NIEnumericalNIE_{\text{numerical}}9

into numerical-change and binary-change components, with EM estimation over both latent mixture membership and true-versus-false zero status, and BIC used to choose the number of mixture components (Jiang et al., 21 Jul 2025). In the ABCD neuroscience study, the mixture method detected cases where NIEbinaryNIE_{\text{binary}}0 and total NIEbinaryNIE_{\text{binary}}1 were significant and also cases where NIEbinaryNIE_{\text{binary}}2 was significant, thereby distinguishing hurdle effects from magnitude effects. The MAZE package implements these zero-inflated mediation procedures.

5. Two-part mediation as a testing problem

In another line of work, “two-part” refers to the two links that generate the mediated effect: exposure NIEbinaryNIE_{\text{binary}}3 mediator and mediator NIEbinaryNIE_{\text{binary}}4 outcome. Under the canonical linear mediation model

NIEbinaryNIE_{\text{binary}}5

the mediation null is

NIEbinaryNIE_{\text{binary}}6

with component hypotheses NIEbinaryNIE_{\text{binary}}7 and NIEbinaryNIE_{\text{binary}}8 (Leibovici et al., 2021). The joint-significance test uses

NIEbinaryNIE_{\text{binary}}9

and is asymptotically conservative when both nulls are true because

NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}0

under Case NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}1.

“Improving Efficiency of Tests for Composite Null Hypotheses” addresses this conservativeness with adaptive two-stage procedures: a filtration step identifies hypotheses likely to be Case NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}2, and a second-stage base test adjusts thresholds to control FWER. The paper connects this filtration to shrinkage through

NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}3

with NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}4, and analyzes local asymptotic efficiency and FWER control.

“Subsampling-based Tests in Mediation Analysis” attacks the same composite-null problem through repeated NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}5-way sample splitting. On each split it computes Sobel statistics NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}6, forms the studentized statistic

NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}7

and proves that for fixed NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}8, NIE=NIEnumerical+NIEbinaryNIE = NIE_{\text{numerical}} + NIE_{\text{binary}}9 under all three null cases. The paper recommends θI\theta_I0 and θI\theta_I1 repeated splits, with final aggregation by a Cauchy combination test (Roy et al., 2024).

High-dimensional mediation replaces scalar products by aggregate products across many mediators. “Testing High-Dimensional Mediation Effect with Arbitrary Exposure-Mediator Coefficients” targets

θI\theta_I2

constructs a debiased estimator

θI\theta_I3

and stabilizes inference under the difficult composite-null corner θI\theta_I4 and θI\theta_I5 through the ridge-adjusted covariance

θI\theta_I6

(Lin et al., 2023). In the TCGA LUAD application, this procedure identified 169 significant gene sets at θI\theta_I7 FWER.

6. Interaction, cross-world assumptions, and adjacent decompositions

A recurrent controversy concerns whether a two-part decomposition should absorb treatment–mediator interaction into the indirect effect or represent it separately. “Path-Free Decomposition for Direct, Indirect and Interaction Effects in Mediation Analysis” argues that the conventional direct–indirect split is path-dependent for binary treatment and binary mediator, and proposes the path-free identity

θI\theta_I8

thereby separating direct, indirect, and interaction effects (Lee, 2021). This result does not abolish two-part mediation, but it shows that some two-part decompositions conceal a third component.

The vaccine-trial literature exposes a different issue: multiplicative two-part mediation on the ratio scale can generate more than one indirect/direct split. “Mediation Analyses for the Effect of Antibodies in Vaccination” defines

θI\theta_I9

with sCIEksCIE_k00 and corresponding proportions mediated

sCIEksCIE_k01

The paper stresses that these are distinct unless the effect of adding antibodies to the placebo arm equals the effect of subtracting antibodies from the vaccine arm, and that identification of sCIEksCIE_k02 may fail when placebo recipients do not have the relevant antibodies because PosM0 fails (Fay et al., 2022). This is why the paper proposes three-arm passive-immunization designs and combinations of vaccine and passive-immunization trials.

For two mediators, interaction can be decomposed still further. “Decomposition of the Total Effect for Two Mediators” introduces natural counterfactual interaction effects and partitions the total effect into mediation only, interaction only, both mediation and interaction, and neither mediation nor interaction. In the sequential case, the identifiable decomposition is

sCIEksCIE_k03

showing that two-part mediation can be embedded בתוך richer interaction-aware taxonomies (Gao et al., 2020).

Finally, some work retains the classical two-part sCIEksCIE_k04 split but changes the confounding structure. BASMU augments high-dimensional structured mediation models with latent individual effects sCIEksCIE_k05 and their outcome impact sCIEksCIE_k06, deriving asymptotic bias when unobserved confounders are omitted and proposing a two-stage estimation algorithm. In the ABCD fMRI application, BASMU identified two to four times more voxels with significant mediation effects, with the NIE increased by sCIEksCIE_k07 and the NDE decreased by sCIEksCIE_k08 relative to a model omitting the unobserved confounders (Xu et al., 2024).

Taken together, these results show that Two-Part Mediation Effect is not a single estimand but a structured way of partitioning causal transmission into two dominant components under a specified intervention regime, scale, and identification strategy. The substantive meaning of the two parts depends on whether the analysis privileges natural or controlled interventions, mean or quantile targets, scalar or distributional mediators, additive or ratio scales, and whether interaction is absorbed, isolated, or re-expressed through richer counterfactual decompositions.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Two-Part Mediation Effect.