Tutorials › Statistical Genetics › Sensitivity Analysis for Mediator–Outcome Confounding

Genetic Mediation and Selection Bias · Tutorial 884 of 989

Sensitivity Analysis for Mediator–Outcome Confounding

Use a transparent sensitivity parameter to quantify how unmeasured mediator–outcome confounding could change natural direct and indirect effect estimates.

Advanced 10 min read

What You'll Learn

  • Define natural direct and indirect effects for a specified exposure contrast.
  • Distinguish a sensitivity analysis from evidence that mediator–outcome confounding is absent.
  • Derive how residual confounding shifts linear mediation coefficients.
  • Adjust direct and indirect effect estimates for a chosen bias parameter.
  • Translate a residual-correlation assumption into a bias parameter and assess tipping points.

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.

Definition: Let \(A\) denote an exposure, \(M\) a mediator, and \(Y\) an outcome. For a contrast between \(a_0\) and \(a_1\), the natural direct effect is \(E[Y(a_1,M(a_0))-Y(a_0,M(a_0))]\): the average outcome change from changing the exposure while setting the mediator to the value it would take under \(a_0\). The natural indirect effect is \(E[Y(a_1,M(a_1))-Y(a_1,M(a_0))]\): the average outcome change from changing the mediator from its value under \(a_0\) to its value under \(a_1\), with exposure held at \(a_1\).

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:

$$ M=\alpha_0+\alpha_A A+\varepsilon_M $$
$$ Y=\beta_0+\beta_A A+\theta M+\varepsilon_Y $$

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:

$$ \operatorname{Var}(\varepsilon_M\mid A,C)=\sigma_M^2,\qquad \operatorname{Cov}(\varepsilon_M,\varepsilon_Y\mid A,C)=\tau $$

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.

Definition: The sensitivity parameter \(\delta=\tau/\sigma_M^2\) is the bias in the fitted mediator coefficient per mediator unit under this linear model. It has the same units as the outcome coefficient for \(M\). A positive \(\delta\) means the usual fitted mediator coefficient is biased upward relative to \(\theta\); a negative \(\delta\) means it is biased downward.

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.

1
Remove the exposure component of the mediator.
After accounting for \(A\), the remaining mediator variation is \(\varepsilon_M\). The remaining outcome variation is \(\theta\varepsilon_M+\varepsilon_Y\).
2
Calculate the fitted mediator coefficient.
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.
3
Recover the direct coefficient from the total effect.
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:

$$ b_M =\frac{\operatorname{Cov}(\varepsilon_M,\theta\varepsilon_M+\varepsilon_Y\mid A,C)} {\operatorname{Var}(\varepsilon_M\mid A,C)} =\theta+\frac{\tau}{\sigma_M^2} =\theta+\delta $$

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:

$$ b_A+\alpha_A(\theta+\delta)=\beta_A+\alpha_A\theta \quad\Longrightarrow\quad b_A=\beta_A-\alpha_A\delta $$

Thus, for a specified \(\delta\), the sensitivity-adjusted estimates are:

$$ \widehat{\theta}(\delta)=b_M-\delta,\qquad \widehat{\beta}_A(\delta)=b_A+\widehat{\alpha}_A\delta $$

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.

Key result: Under the stated linear model, increasing \(\delta\) lowers the mediator effect estimate by \(\delta\) and raises the direct effect estimate by \(\widehat{\alpha}_A\delta\). The total effect is unchanged. This sensitivity adjustment quantifies the consequence of a chosen confounding value; it does not establish that the model assumptions hold.

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:

$$ \widehat{\theta}(0.08)=0.30-0.08=0.22 $$

The adjusted indirect effect is \(0.40\times0.22=0.088\) outcome units per exposure unit. The adjusted direct effect is:

$$ \widehat{\beta}_A(0.08)=0.10+(0.40)(0.08)=0.132 $$

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:

$$ \tau=(0.15)(1.5)(0.8)=0.18 $$

The mediator residual variance is \(\sigma_M^2=1.5^2=2.25\), giving:

$$ \delta=\frac{0.18}{2.25}=0.08 $$

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:

$$ b_M-\delta=0 \quad\Longrightarrow\quad \delta=0.30 $$

Using \(\sigma_M=1.5\) and \(\sigma_Y=0.8\), this corresponds to a residual correlation of:

$$ \rho=\frac{\delta\sigma_M}{\sigma_Y} =\frac{(0.30)(1.5)}{0.8}=0.5625 $$

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:

$$ 0.10+(0.40)\delta=0 \quad\Longrightarrow\quad \delta=-0.25 $$

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.

  1. In the model above, what does \(\delta\) measure, and what are its units?
  2. 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.
  3. Why does a nonzero residual covariance shift the fitted direct coefficient as well as the fitted mediator coefficient?
  4. What additional information is needed to translate a residual correlation \(\rho\) into \(\delta\)?
  5. Name one important causal threat that this sensitivity analysis does not address.
Clinical Biostats