Two-Part Mediation Effect Analysis
- 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 | , | |
| Quantile mediation | , | |
| Zero-inflated mediator | , | |
| Vaccine ratio-scale mediation | , 0 | 1 |
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 2, outcome 3, binary mediators 4, and baseline covariates 5. Mediators may form any directed acyclic graph, with recursive counterfactual construction
6
For mediator 7, the potential outcome under a single-mediator intervention is
8
The total effect is
9
and the controlled indirect effect for mediator 0 at exposure level 1 is
2
The corresponding manipulation-specific direct effect is
3
and the scaled controlled indirect effect is
4
The defining two-part decomposition is
5
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,
6
with the key g-formula
7
Estimation can proceed by parametric g-computation or by the doubly robust estimators
8
9
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 0, approximately 1 of the total effect, while Perceived Harm had 2, approximately 3 of the total effect. In the HIV–Brain Age cohort, Hyperlipidemia had 4 and 5, which the paper interprets as indicating substantial clinical benefit from treating hyperlipidemia. The framework therefore ranks mediators by 6 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
7
8
with
9
Under a generalized structural equation model built via a Gaussian copula, the paper derives closed-form expressions in terms of transformed probabilities 0, and shows that in the special case where 1 and 2 are normal, 3 and 4 do not depend on 5 and coincide with mean-based mediation counterparts (Chen et al., 2024).
A related but older quantile perspective decomposes the 6-specific indirect effect into three interpretable factors. “A novel quantile-based decomposition of the indirect effect in mediation analysis” defines a local representation
7
where 8 is the 9-th quantile effect of the exposure on the mediator, 0 is the outcome sensitivity to mediator rank 1, and 2 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 3 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,
4
where the coefficient functions vary smoothly with moderator 5 (Liu et al., 2022). In the entrepreneurial withdrawal analysis, the estimated indirect effect declined with self-efficacy because the stress 6 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 7 and the indicator 8, and defines
9
with
0
1
Under the linear outcome model
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
3
yields
4
where 5 is mediation through nonzero abundance and 6 is mediation through presence probability. The framework explicitly models false zeros through the limit-of-detection rule
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
8
and the paper again decomposes
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 0 and total 1 were significant and also cases where 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 3 mediator and mediator 4 outcome. Under the canonical linear mediation model
5
the mediation null is
6
with component hypotheses 7 and 8 (Leibovici et al., 2021). The joint-significance test uses
9
and is asymptotically conservative when both nulls are true because
0
under Case 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 2, and a second-stage base test adjusts thresholds to control FWER. The paper connects this filtration to shrinkage through
3
with 4, and analyzes local asymptotic efficiency and FWER control.
“Subsampling-based Tests in Mediation Analysis” attacks the same composite-null problem through repeated 5-way sample splitting. On each split it computes Sobel statistics 6, forms the studentized statistic
7
and proves that for fixed 8, 9 under all three null cases. The paper recommends 0 and 1 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
2
constructs a debiased estimator
3
and stabilizes inference under the difficult composite-null corner 4 and 5 through the ridge-adjusted covariance
6
(Lin et al., 2023). In the TCGA LUAD application, this procedure identified 169 significant gene sets at 7 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
8
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
9
with 00 and corresponding proportions mediated
01
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 02 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
03
showing that two-part mediation can be embedded בתוך richer interaction-aware taxonomies (Gao et al., 2020).
Finally, some work retains the classical two-part 04 split but changes the confounding structure. BASMU augments high-dimensional structured mediation models with latent individual effects 05 and their outcome impact 06, 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 07 and the NDE decreased by 08 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.