Why MR-RAPS is useful
In summary-data Mendelian randomization, a genetic variant may be only weakly associated with the exposure. Treating its estimated exposure association as if it were known exactly can distort the causal-effect estimate. At the same time, variants can have direct effects on the outcome that are not mediated by the exposure: horizontal pleiotropy. MR-RAPS (robust adjusted profile score) addresses these issues by accounting for uncertainty in exposure associations and allowing balanced, heterogeneous direct effects. Its robust score can reduce the influence of variants with unusually large residuals.
These protections depend on assumptions. In particular, MR-RAPS does not make arbitrary pleiotropy harmless: its central model requires direct effects to average to zero and to be independent of instrument strength. The method also needs an appropriate model for the uncertainty and dependence in the association estimates.
Model and assumptions
For variant \(j\), let \(\gamma_j\) be its true association with the exposure, \(\hat{\gamma}_j\) its estimated exposure association, and \(\hat{\Gamma}_j\) its estimated outcome association. Let \(\beta\) denote the causal effect per unit increase in the exposure, and let \(\alpha_j\) denote the variant's direct effect on the outcome. A common two-sample summary-data model is
Here \(e_{Xj}\) and \(e_{Yj}\) are association-estimation errors, with variances \(s_{Xj}^2\) and \(s_{Yj}^2\). Under the usual independent two-sample approximation, these errors are independent. The variants are assumed independent of one another; correlated variants require a model that accounts for their covariance.
For the normal random-effects version, the residual at a proposed causal effect is
The term \(\beta^2s_{Xj}^2\) is essential: uncertainty in the exposure association contributes to uncertainty in the outcome residual. The term \(\tau^2\) allows residual variation beyond the two association standard errors, as expected when direct effects vary across variants. Under the stated model, \(r_j\) has mean zero and variance \(v_j\). A weak instrument has relatively large exposure-association uncertainty compared with its true exposure association; MR-RAPS does not simply discard that uncertainty by treating \(\hat{\gamma}_j\) as exact.
Worked Example: Building the Residual Variance
Suppose a hypothetical variant has \(s_X=0.04\) exposure units, \(s_Y^2=0.00060\) outcome-association units squared, and the candidate causal effect is \(\beta=0.50\) outcome units per exposure unit. Suppose the fitted pleiotropic variance is \(\tau^2=0.00030\). Calculate the residual variance.
The exposure-error contribution is \(\beta^2s_X^2=(0.50)^2(0.04)^2=0.25(0.0016)=0.00040\). Therefore,
The standard deviation used to standardize the residual is \(0.03606\) outcome-association units. Omitting exposure-association uncertainty would omit \(0.00040\) from the variance; omitting pleiotropic overdispersion would omit \(0.00030\). Either omission would change the standardized residual and the weight assigned to this variant.
The adjusted profile score
With a squared-error score, the adjusted estimating equation for \(\beta\) is
The first term resembles a residual-weighted association score. The second term is the adjustment: it corrects for the fact that the estimated exposure association also appears in the residual. Without it, the score is generally not centered at zero when exposure-association estimates are noisy. Solving an estimating equation means finding the value of \(\beta\) for which the sum of contributions is zero; it is not a calculation that can generally be replaced by a single ratio.
MR-RAPS generalizes this equation by replacing the linear residual score with a robust score. Define \(Z_j=r_j/\sqrt{v_j}\), and let \(\psi\) be the derivative of a chosen robust loss function. The normal-adjusted score takes the form
Here \(\psi'\) is the derivative of \(\psi\), where it exists, and the expectation in the adjustment is taken under a standard normal variable. This particular adjustment is justified by a normal residual model. If direct effects are assumed only to have mean zero and variance \(\tau^2\), but are not assumed normal, the residual need not be normal and this expectation is not automatically justified. In that case, the adjustment must be appropriate to the residual distribution rather than borrowed unchanged from the normal model.
Why the adjustment is needed
The key point can be seen from a short derivation. Conditional on the true \(\gamma_j\), suppose the association errors are independent normal variables and \(\alpha_j\) is also independent and normal with variance \(\tau^2\). Then \(\hat{\gamma}_j\) and \(Z_j\) are jointly normal, with
For jointly normal variables, the normal integration-by-parts identity gives \(E\{X\psi(Z)\}=E(X)E\{\psi(Z)\}+\operatorname{Cov}(X,Z)E\{\psi'(Z)\}\). Here \(Z_j\) is standard normal and a symmetric score such as Huber's has \(E\{\psi(Z_j)\}=0\). Consequently,
Adding the adjustment in \(U_\psi\) cancels this expectation, centering the score at the true \(\beta\) under the model. This justification uses the stated joint normality; mean zero and variance \(\tau^2\) alone do not establish the identity. In the squared-error case, \(\psi(z)=z\) and \(E\{\psi'(Z)\}=1\), recovering the displayed adjusted score.
Robust loss choices
A robust loss grows less rapidly than squared error for large standardized residuals. Its score \(\psi(z)\) therefore limits how much a variant with an extreme residual can influence the estimate. Robustness is not automatic protection against invalid instruments: it changes the influence of residual outliers, while the balanced-pleiotropy and other identification assumptions remain important.
| Choice | Score \(\psi(z)\) | Behavior for large residuals |
|---|---|---|
| Squared error | \(z\) | Unbounded; extreme residuals can have large influence |
| Huber loss | \(z\) if \(|z|\le c\); \(c\,\operatorname{sign}(z)\) otherwise | Score is bounded but does not return toward zero |
| Tukey bisquare loss | \(z\{1-(z/c)^2\}^2\) if \(|z|<c\); \(0\) otherwise | Score returns to zero for sufficiently large residuals |
For Huber's loss, the usual tuning constant \(c=1.345\) gives about 95% asymptotic efficiency relative to squared-error estimation under a normal location model. That efficiency statement is not the proportion of observations inside the linear region: \(P(|Z|\le1.345)\) for \(Z\sim N(0,1)\) is about \(0.821\), or 82.1%. For Tukey's bisquare, the tuning constant is often set near \(4.685\) for a similar normal-model efficiency target. Such tuning choices describe behavior under specified conditions; they do not guarantee valid causal inference in a particular analysis.
Worked Example: Evaluating a Huber Adjusted Score
Consider three hypothetical variants at the candidate \(\beta=0.50\). For each, let \(s_X=0.04\), \(s_Y^2=0.00060\), and \(\tau^2=0.00030\), so \(v=0.00130\) and \(\sqrt v=0.03606\). Let \(\hat{\gamma}\) values be \(0.08\), \(0.12\), and \(0.16\). Suppose their residuals are \(0.00721\), \(-0.01442\), and \(0.04849\), giving standardized residuals \(Z=0.20\), \(-0.40\), and \(1.345\) to the shown precision.
Use Huber's score with \(c=1.345\). The first two residuals are in its linear region, and the third is at the boundary. Thus \(\psi(Z)\) is \(0.20\), \(-0.40\), and \(1.345\). Using \(E\{\psi'(Z)\}=P(|Z|\le1.345)\approx0.821\), the shared adjustment for each variant is
The first score contribution is \[ \frac{0.08(0.20)}{\sqrt{0.00130}}+0.5052 \approx 0.4438+0.5052=0.9490. \] The second is \[ \frac{0.12(-0.40)}{\sqrt{0.00130}}+0.5052 \approx -1.3313+0.5052=-0.8261. \] The third is \[ \frac{0.16(1.345)}{\sqrt{0.00130}}+0.5052 \approx 5.969+0.5052=6.474. \]
The total score at this candidate value is approximately \(0.9490-0.8261+6.4738=6.5967\), not zero. This calculation evaluates the estimating equation; it does not by itself give the MR-RAPS estimate. Estimation requires solving for the value of \(\beta\) at which the full score is zero, generally while also estimating \(\tau^2\).
Estimating overdispersion and interpreting results
The overdispersion parameter \(\tau^2\) is estimated rather than assumed to be known. In practice, MR-RAPS procedures estimate it jointly with the causal effect using a profile-likelihood or robust scale procedure appropriate to the chosen implementation. A larger fitted \(\tau^2\) increases \(v_j\), so residuals are standardized against more variation than association-sampling error alone. The adjustment term also depends on \(v_j\). Thus changing \(\tau^2\) can change both residual influence and score weighting; its effect on the final estimate need not be in one direction.
Worked Example: How Overdispersion Changes Standardization
Return to the first variant in the previous example, with residual \(r=0.00721\), \(s_Y^2=0.00060\), \(\beta=0.50\), and \(s_X^2=0.00160\). If \(\tau^2=0\), then \[ v=0.00060+0.50^2(0.00160)=0.00100, \qquad Z=0.00721/\sqrt{0.00100}=0.228. \] If \(\tau^2=0.00030\), then \(v=0.00130\) and \(Z=0.00721/\sqrt{0.00130}=0.200\). The larger overdispersion estimate makes this same residual less extreme after standardization. With Huber \(c=1.345\), both values remain in the linear region, but the score contribution and adjustment still change because both use \(v\). This is why overdispersion belongs in the model rather than being treated as a cosmetic correction after estimation.
Inference commonly uses an estimated standard error for the robust estimate and a confidence interval such as \(\hat{\beta}\pm1.96SE\) when the relevant large-sample approximation is adequate. A 95% confidence procedure has 95% coverage across repeated samples under its assumptions; it does not mean there is a 95% probability that a fixed causal effect lies in the particular computed interval. The causal interpretation also depends on instrument validity, population structure control, and the balanced-pleiotropy model. Robust fitting does not prove those assumptions.
Common pitfalls
- Dropping exposure uncertainty. Using only \(s_{Yj}^2+\tau^2\) in the residual variance treats \(\hat{\gamma}_j\) as exact. Include \(\beta^2s_{Xj}^2\).
- Calling balanced pleiotropy no pleiotropy. The model permits nonzero \(\alpha_j\); it requires their distribution to be centered and suitably independent of instrument strength.
- Confusing robust with assumption-free. A bounded score limits the influence of large residuals, but cannot repair directional pleiotropy or confounding of genetic associations.
- Using the normal adjustment without its justification. The identity involving \(E\{\psi'(Z)\}\) requires a suitable joint normal model (or another valid derivation for the actual residual distribution).
- Misreading Huber's tuning constant. At \(c=1.345\), about 82.1% of standard normal values fall in the linear region. The commonly cited 95% is an efficiency property under a normal location model.
- Treating a score at one candidate as the estimate. The estimate solves the estimating equation; an individual score evaluation only shows whether that candidate satisfies it.
Check Your Understanding
Try these questions before reviewing the definitions and calculations above.
- Why does the residual variance include \(\beta^2s_{Xj}^2\), and what would be assumed if this term were omitted?
- What does balanced pleiotropy require about the mean of \(\alpha_j\) and its relationship to \(\gamma_j\)?
- In the normal model, what dependence between \(\hat{\gamma}_j\) and \(Z_j\) creates the need for the adjustment term?
- How does Huber's score differ from Tukey bisquare's score for extremely large standardized residuals?
- For \(c=1.345\), distinguish the proportion of a standard normal distribution in Huber's linear region from the commonly cited efficiency property.
- Why is a positive adjusted score at a candidate \(\beta\) not itself the MR-RAPS estimate?