Tutorials › Statistical Genetics › Two-Step Mendelian Randomization for Mediation

Genetic Mediation and Selection Bias · Tutorial 872 of 989

Two-Step Mendelian Randomization for Mediation

Use two sets of genetic instruments to estimate a mediated effect, and identify the assumptions needed to interpret it as an indirect causal effect.

Advanced 10 min read

What You'll Learn

  • Define the two causal effects estimated in two-step Mendelian randomization.
  • Calculate each step using genetic association estimates and inverse-variance weighting.
  • Combine the two estimates into an indirect effect with interpretable units.
  • State the instrument and mediation assumptions needed for a causal interpretation.
  • Distinguish the indirect effect from a total genetic effect and assess when subtraction is meaningful.

Why Use Two-Step Mendelian Randomization?

A genetic variant associated with an exposure may also be associated with an outcome because the exposure affects the outcome through a mediator. Two-step Mendelian randomization (MR) estimates this pathway in two parts: first, the causal effect of the exposure on the mediator; second, the causal effect of the mediator on the outcome. The product of those two effects estimates the indirect effect along the specified pathway, under substantive assumptions.

The procedure is useful when the two relationships are informed by different genetic instruments. It does not, by itself, estimate the total effect of the exposure on the outcome. Nor does using separate instrument sets automatically make either estimate valid: each set must satisfy the assumptions for the causal effect it is being used to estimate.

Definition: Let \(X\) be an exposure, \(M\) a mediator, and \(Y\) an outcome. Two-step MR estimates an exposure-to-mediator effect, \(\theta_{XM}\), and a mediator-to-outcome effect, \(\theta_{MY}\), using genetic instruments for the respective steps. The indirect effect through \(M\) is estimated by their product, \(\theta_{XM}\theta_{MY}\). The estimate concerns the pathway \(X \rightarrow M \rightarrow Y\), not all pathways from \(X\) to \(Y\).

Two Steps and the Product Estimate

For the first step, genetic variants associated with \(X\) are used as instruments to estimate the effect of \(X\) on \(M\). For the second, variants associated with \(M\) are used as instruments to estimate the effect of \(M\) on \(Y\). The variants used in the two steps need not be the same. In either step, the genetic association estimates must refer to clearly defined scales: for example, a change in the mediator per one unit of exposure, followed by a change in the outcome per one unit of mediator.

With one instrument in a step, a basic estimate is the ratio of the variant’s association with the downstream trait to its association with the instrumented trait. With several independent variants, inverse-variance weighted (IVW) estimation combines their ratios. In the first step, write \(\hat{\gamma}_{Xj}\) for the estimated association of variant \(j\) with \(X\), and \(\hat{\gamma}_{Mj}\) for its association with \(M\). A first-order IVW estimate is:

$$ \hat{\theta}_{XM} = \frac{\sum_j w_{Mj}\hat{\gamma}_{Xj}\hat{\gamma}_{Mj}} {\sum_j w_{Mj}\hat{\gamma}_{Xj}^{\,2}}, \qquad w_{Mj}=\frac{1}{SE(\hat{\gamma}_{Mj})^2}. $$

The second step has the corresponding form, using variants \(k\) for the mediator and their associations with the outcome:

$$ \hat{\theta}_{MY} = \frac{\sum_k w_{Yk}\hat{\gamma}_{Mk}\hat{\gamma}_{Yk}} {\sum_k w_{Yk}\hat{\gamma}_{Mk}^{\,2}}, \qquad w_{Yk}=\frac{1}{SE(\hat{\gamma}_{Yk})^2}. $$

These first-order weights treat uncertainty in the instrument–exposure association in a step as small relative to the downstream association’s uncertainty. They are most defensible when those instruments are sufficiently strong. The formulas also describe a weighted regression through the origin; their use relies on compatible association scales and appropriate instrument validity, not just on the arithmetic.

Key result: The two-step point estimate of the indirect effect is \(\hat{\theta}_{\mathrm{ind}}=\hat{\theta}_{XM}\hat{\theta}_{MY}\). If \(\hat{\theta}_{XM}\) is measured in mediator units per exposure unit and \(\hat{\theta}_{MY}\) in outcome units per mediator unit, their product is in outcome units per exposure unit.

Worked Example: Estimating Both Steps With Separate Instrument Sets

Suppose a hypothetical analysis uses variants A and B for the exposure-to-mediator step. The exposure association estimates are \(\hat{\gamma}_{XA}=0.10\) and \(\hat{\gamma}_{XB}=0.12\), in exposure units per allele. The mediator association estimates are \(0.04\) and \(0.06\), each with standard error \(0.02\), in mediator units per allele. For the second step, variants C and D instrument the mediator: their mediator associations are \(0.08\) and \(0.12\), and their outcome associations are \(0.016\) (standard error \(0.004\)) and \(0.030\) (standard error \(0.006\)).

First step. Each mediator-association weight is \(1/(0.02)^2=2{,}500\). Substituting into the IVW formula gives:

$$ \hat{\theta}_{XM} = \frac{2{,}500(0.10)(0.04)+2{,}500(0.12)(0.06)} {2{,}500(0.10^2)+2{,}500(0.12^2)} = \frac{28}{61} = 0.4590. $$

The first-step estimate is 0.4590 mediator units per exposure unit.

Second step. The outcome-association weights are \(1/(0.004)^2=62{,}500\) for C and \(1/(0.006)^2=27{,}777.78\) for D. Thus:

$$ \hat{\theta}_{MY} = \frac{62{,}500(0.08)(0.016)+27{,}777.78(0.12)(0.030)} {62{,}500(0.08^2)+27{,}777.78(0.12^2)} = \frac{80+100}{400+400} = 0.2250. $$

This is 0.2250 outcome units per mediator unit. The product estimate is \(0.4590 \times 0.2250=0.1033\) outcome units per exposure unit. Under the assumptions for both steps, this estimates the indirect effect through the mediator. It is not an estimate of every pathway from the exposure to the outcome.

Conditions for a Causal Interpretation

For either MR step, the variants used as instruments must satisfy the standard instrumental-variable requirements for that step. Relevance means they predict the trait they instrument: \(X\) in the first step and \(M\) in the second. Independence means they are independent of causes of the relevant downstream trait, conditional on appropriate design and ancestry control. Exclusion means their effects on that downstream trait operate through the instrumented trait, rather than through another route. These are distinct requirements, and a variant’s association with a trait alone establishes relevance, not the other two conditions.

For example, a variant used to estimate \(M \rightarrow Y\) cannot have an independent effect on \(Y\) outside the mediator pathway. If it changes \(X\), and \(X\) affects \(Y\) through a route other than \(M\), that route can also violate the exclusion condition for this step. Merely calling a variant a mediator instrument does not rule out such pathways.

The product interpretation also requires a mediation model in which the two effects combine in the stated way. In a simple linear additive model with no exposure–mediator interaction, write:

$$ M=\alpha X+U_M, \qquad Y=\delta X+\beta M+U_Y. $$

Here \(\alpha\) is the effect of \(X\) on \(M\), \(\beta\) is the effect of \(M\) on \(Y\) holding the direct \(X\) pathway fixed, and \(\delta\) is the direct effect of \(X\) on \(Y\) in this model. Increasing \(X\) by one unit changes \(M\) by \(\alpha\) units. The resulting change in \(Y\) through \(M\) is therefore \(\beta\alpha\). The direct change is \(\delta\), so the total change is \(\delta+\beta\alpha\). This justifies the product as the indirect component within this model; it does not establish the model or instrument assumptions from data alone.

A causal interpretation additionally depends on the target population, compatible effect scales, and the absence of relevant model misspecification. In particular, the two estimated effects must be meaningful components of the same pathway in the same causal setting. The product can still be calculated when assumptions are doubtful, but then it should be reported as a product of MR estimates rather than asserted to be an identified causal indirect effect.

Worked Example: Indirect Effect Versus Total Genetic Effect

Consider hypothetical estimates on continuous scales. The first step estimates an exposure-to-mediator effect of \(0.50\) mediator standard deviations per exposure standard deviation. The second estimates a mediator-to-outcome effect of \(0.20\) outcome standard deviations per mediator standard deviation. A separate exposure-instrument analysis estimates a total exposure-to-outcome effect of \(0.35\) outcome standard deviations per exposure standard deviation.

The two-step indirect estimate is:

$$ \hat{\theta}_{\mathrm{ind}} = 0.50 \times 0.20 = 0.100 \quad\text{outcome standard deviations per exposure standard deviation.} $$

The total-effect estimate of \(0.35\) includes the mediated pathway and any other causal pathways from \(X\) to \(Y\) represented by the total-effect model. It is not interchangeable with the indirect estimate of \(0.100\). If the same linear additive model and compatible causal assumptions hold for both estimates, subtracting gives \(0.35-0.100=0.250\) outcome standard deviations per exposure standard deviation as the direct component in that model. Without those compatibility and identification conditions, this subtraction is not automatically a valid direct-effect estimate.

Worked Example: A Negative Indirect Effect

Suppose a hypothetical single-variant analysis estimates an exposure-to-mediator association ratio of \(-0.030/0.100=-0.300\) mediator standard deviations per exposure standard deviation. A separate mediator-instrument analysis estimates a mediator-to-outcome ratio of \(0.060/0.150=0.400\) outcome standard deviations per mediator standard deviation. The indirect estimate is:

$$ (-0.300)(0.400)=-0.120 \quad\text{outcome standard deviations per exposure standard deviation.} $$

The negative sign follows from the opposing directions of the two steps: greater exposure is estimated to reduce the mediator, while greater mediator is estimated to increase the outcome. Subject to instrument validity and the mediation model, the implied pathway is a reduction of \(0.120\) outcome standard deviations per exposure standard deviation. The sign does not mean that the outcome itself is necessarily reduced overall; other pathways can contribute to the total effect.

Common Mistakes and Practical Checks

  • Calling the product the total effect. The product estimates only the specified mediated pathway. A total-effect estimate includes all causal pathways represented by its model.
  • Assuming separate instruments guarantee validity. Different variant sets do not prevent either set from violating relevance, independence, or exclusion.
  • Ignoring units or scales. Check that the mediator units cancel in the product and that both steps refer to compatible scales and populations.
  • Interpreting a product causally without a pathway model. The arithmetic is always possible; the indirect-effect interpretation needs valid instruments and assumptions that justify composing the two effects.
  • Subtracting from a total effect automatically. The difference is a direct effect only under a compatible model and identification conditions, not simply because one estimate is labelled “total.”

Before interpreting a result, verify the instrument set for each step, the direction and units of both estimates, and the assumptions connecting them. Also distinguish the estimate’s sign and magnitude from its uncertainty: the point estimate alone does not show whether the pathway is estimated precisely.

Check Your Understanding

Answer each question using the two-step framework.

  1. If the first-step estimate is 0.30 mediator units per exposure unit and the second-step estimate is 0.50 outcome units per mediator unit, what is the indirect-effect estimate and its unit?
  2. Why does a variant’s association with the mediator establish relevance for the second step but not exclusion?
  3. In the linear additive model, explain why the indirect component is the product of the exposure-to-mediator and mediator-to-outcome effects.
  4. A total-effect estimate is 0.40 and the two-step indirect estimate is 0.15. What additional conditions are needed before interpreting their difference as a direct effect?
  5. Can separate instrument sets, by themselves, rule out a non-mediated effect of a mediator instrument on the outcome? Explain.
Clinical Biostats