Why Assess Mediator–Outcome Confounding?
In genetic mediation, an estimated pathway from an exposure through a mediator to an outcome depends on assumptions about the mediator–outcome relationship. A genetic instrument may help address confounding of the exposure, but it does not by itself ensure that the mediator and outcome are unconfounded. For example, an unmeasured biological process could affect both gene expression and disease. Adjusting for measured covariates cannot remove confounding by causes that were not measured.
Sensitivity analysis makes this limitation quantitative. Rather than treating adjustment as proof that the causal effects are identified, we specify how strongly unmeasured mediator–outcome confounding would have to act to change the estimates, and examine whether conclusions remain stable over a defensible range of values.
These are counterfactual, population-average effects. Their identification generally requires assumptions about exposure confounding, mediator–outcome confounding, consistency, positivity and the counterfactual relationships involved. Here the focus is the mediator–outcome part: we will allow residual mediator and outcome errors to be associated, and ask how that association changes estimates in a linear model.
A Linear Sensitivity Model
For clarity, consider a one-unit exposure contrast, adjusting for measured covariates \(C\). Assume the following additive models, with covariates suppressed after adjustment:
The model assumes the conditional mean relationships are linear, there is no exposure–mediator interaction, and the coefficients do not vary across individuals. Assume also that the exposure is unconfounded for the mediator and outcome given \(C\), and that the errors have mean zero conditional on \(A,C\). The sensitivity analysis targets a violation of mediator–outcome exchangeability: allow \(\varepsilon_M\) and \(\varepsilon_Y\) to be correlated after conditioning on \(A,C\). Write their conditional residual variance and covariance as:
In this model, \(\alpha_A\) is the exposure effect on the mediator, \(\theta\) is the causal outcome effect per mediator unit under the model, and \(\beta_A\) is the direct outcome effect per exposure unit. If \(\tau=0\), the mediator and outcome residuals are uncorrelated conditional on exposure and measured covariates. When \(\tau\ne0\), an ordinary regression of \(Y\) on \(A,M,C\) does not generally estimate \(\theta\) without bias.
This parameter is not an estimated correction that the observed data can determine on their own. Its value must be posited, bounded, or calibrated using scientific knowledge or other information. The sensitivity analysis reports what the effect estimates would be under each chosen value.
Deriving the Bias Adjustment
Let \(b_M\) and \(b_A\) be the coefficients from the usual adjusted regression of \(Y\) on \(A,M,C\), and let \(\widehat{\alpha}_A\) be the exposure coefficient in the mediator regression. The algebra below explains how residual covariance shifts the outcome regression coefficients. For the derivation, treat the covariates as adjusted out and use the population coefficients; estimated coefficients replace them in an applied analysis.
After accounting for \(A\), the remaining mediator variation is \(\varepsilon_M\). The remaining outcome variation is \(\theta\varepsilon_M+\varepsilon_Y\).
The regression coefficient is the covariance of these residuals divided by the mediator residual variance. The covariance term includes \(\tau\), the residual mediator–outcome covariance.
The total exposure coefficient is \(\beta_A+\alpha_A\theta\). In the fitted regression it is also \(b_A+\alpha_A b_M\), so the mediator-coefficient bias induces an equal and opposite shift in \(b_A\), scaled by \(\alpha_A\).
In detail, the population regression coefficient for \(M\), conditional on \(A,C\), is:
The total exposure effect under these additive models is \(\beta_A+\alpha_A\theta\). The fitted regression's total coefficient is \(b_A+\alpha_A b_M\), since the mediator changes by \(\alpha_A\) units per exposure unit. Equating these expressions and substituting \(b_M=\theta+\delta\) gives:
Thus, for a specified \(\delta\), the sensitivity-adjusted estimates are:
For a one-unit exposure contrast, the indirect effect estimate is \(\widehat{\alpha}_A\widehat{\theta}(\delta)\), and the direct effect estimate is \(\widehat{\beta}_A(\delta)\). Their sum remains the fitted total effect \(b_A+\widehat{\alpha}_A b_M\). This decomposition is a feature of the additive, no-interaction model; it should not be carried over automatically to models with interactions or nonlinear outcome scales.
Worked Sensitivity Analyses
Worked Example: Adjusting the Two Effects for a Chosen Bias
Suppose a hypothetical genetic mediation analysis estimates \(\widehat{\alpha}_A=0.40\) standard-deviation units of mediator per exposure unit, \(b_M=0.30\) outcome units per mediator standard deviation, and \(b_A=0.10\) outcome units per exposure unit. The fitted total effect is \(0.10+(0.40)(0.30)=0.22\) outcome units per exposure unit. Assume the linear additive model is appropriate and the exposure is unconfounded given \(C\). What happens if unmeasured mediator–outcome confounding produces \(\delta=0.08\) outcome units per mediator standard deviation?
The adjusted mediator effect is:
The adjusted indirect effect is \(0.40\times0.22=0.088\) outcome units per exposure unit. The adjusted direct effect is:
The components still sum to \(0.088+0.132=0.220\), the fitted total effect. Relative to the analysis that assumes \(\delta=0\), this scenario moves \(0.032\) outcome units per exposure unit from the indirect component to the direct component. It is a conditional result: it holds if the selected bias value and the model assumptions are credible.
Worked Example: Translating a Residual Correlation Into a Bias
Use the same hypothetical coefficients, but express the confounding assumption as a residual correlation. Suppose the residual standard deviation for \(M\) is \(\sigma_M=1.5\) mediator standard deviations and the structural outcome residual standard deviation is \(\sigma_Y=0.8\) outcome units. Assume a residual correlation of \(\rho=0.15\) between \(\varepsilon_M\) and \(\varepsilon_Y\). Under these assumptions, the covariance is \(\tau=\rho\sigma_M\sigma_Y\), so:
The mediator residual variance is \(\sigma_M^2=1.5^2=2.25\), giving:
This corresponds to the sensitivity value in the previous example: the adjusted mediator effect is \(0.30-0.08=0.22\) outcome units per mediator standard deviation, and the adjusted indirect effect is \(0.40\times0.22=0.088\) outcome units per exposure unit. The correlation is between the model residuals, not necessarily between the raw observed mediator and outcome. Its interpretation depends on having specified the model and conditioning variables correctly.
Worked Example: Finding Tipping Points
For the same hypothetical estimates, ask how large \(\delta\) must be to make the estimated indirect effect zero. Since the indirect effect is \(\widehat{\alpha}_A(b_M-\delta)\), and \(\widehat{\alpha}_A=0.40\ne0\), it is zero when:
Using \(\sigma_M=1.5\) and \(\sigma_Y=0.8\), this corresponds to a residual correlation of:
Under this model, a positive residual correlation of \(0.5625\) would reduce the indirect point estimate to zero; a larger positive \(\delta\) would reverse its sign. The direct effect estimate would then be \(0.10+(0.40)(0.30)=0.22\) outcome units per exposure unit. This is a tipping point, not a claim that a correlation of \(0.5625\) is plausible or implausible; that judgment requires domain knowledge.
The direct effect point estimate reaches zero at a different value:
On the same residual scale, this is \(\rho=(-0.25)(1.5)/0.8=-0.46875\). The two tipping points differ because positive and negative mediator–outcome confounding shift the components in opposite directions.
Using the Analysis Responsibly
A practical analysis should present a range of sensitivity values, not just one selected value. For example, researchers might report adjusted direct and indirect estimates across negative, zero and positive values of \(\delta\), and identify where the sign or substantive interpretation changes. When a residual-correlation scale is more interpretable, the conversion \(\delta=\rho\sigma_Y/\sigma_M\) can be used with clearly stated residual standard deviations and assumptions.
Uncertainty also matters. The equations above adjust point estimates for a fixed sensitivity value. Confidence intervals should account for sampling uncertainty in the estimated mediation coefficients and, where relevant, uncertainty in \(\delta\) or its calibration. A point estimate that stays positive over a grid does not by itself establish that the effect differs from zero.
This particular sensitivity model addresses one source of uncertainty: residual mediator–outcome confounding in an additive linear model. It does not repair exposure confounding, horizontal pleiotropy, selection bias, measurement error, an incorrect functional form, or an exposure-induced mediator–outcome confounder. It also does not establish the cross-world assumptions required for natural effects. Those concerns require separate design arguments or sensitivity analyses.
Common Mistake
Wrong reasoning: “We adjusted for measured covariates in the outcome regression, so the mediator coefficient is causal and the natural indirect effect is identified.”
Correction: Covariate adjustment only addresses confounding by variables measured and appropriately modeled. An unmeasured common cause can leave \(\tau\ne0\), shifting the mediator coefficient and, in this model, the direct coefficient as well. Report which sensitivity values were considered and how conclusions change; do not interpret adjustment as evidence that unmeasured confounding is absent.
Check Your Understanding
Use the linear sensitivity model and distinguish what is estimated from what is assumed.
- In the model above, what does \(\delta\) measure, and what are its units?
- If \(b_M=0.25\), \(\widehat{\alpha}_A=0.5\), and \(\delta=0.05\), calculate the adjusted mediator effect and indirect effect for a one-unit exposure contrast.
- Why does a nonzero residual covariance shift the fitted direct coefficient as well as the fitted mediator coefficient?
- What additional information is needed to translate a residual correlation \(\rho\) into \(\delta\)?
- Name one important causal threat that this sensitivity analysis does not address.