Why Reconstruct Conditional Results From Summary Statistics?
A marginal association estimate describes a variant’s relationship with an outcome when that variant is tested on its own, subject to the covariates in the model. A conditional estimate instead describes the variant’s association while the other included variants are held fixed. When individual-level genotypes are unavailable, marginal estimates and the correlations among variants can sometimes recover the joint estimates. The calculation is useful only when those summaries refer to compatible data and models.
This tutorial develops the calculation for a quantitative outcome analyzed with linear regression. The key distinction is that the conditional point estimates follow from a linear-algebra identity, while conditional standard errors and tests also require a suitable residual-variance estimate and compatible sampling assumptions.
Model, Assumptions, and Genotype Scaling
Begin with the linear model
Here \(\beta\) is the vector of conditional variant effects, measured per genotype-allele count if \(G\) contains allele counts. For the usual standard-error and test calculations, assume the model is correctly specified and the residuals are independent with common variance; normal residuals give exact finite-sample \(t\)-tests, while large samples often justify normal approximations. The covariates and all variants must be observed in the same analytic sample, and the marginal results must use the same outcome, covariate adjustment, and allele coding.
Let \(M_C=I-C(C'C)^{-1}C'\) be the residual-maker matrix, assuming \(C\) has full column rank. Require \(C\) to include an intercept. Define the covariate-residualized outcome and genotypes by \(y^*=M_Cy\) and \(W=M_CG\). The intercept means that every column of \(W\) is centered. Let \(D\) be the diagonal matrix whose \(j\)th diagonal entry is \(d_j=\sqrt{W_j'W_j}\), the Euclidean norm of residualized genotype \(j\). Each \(d_j\) must be positive.
With these definitions, \(R\) is the Pearson correlation matrix of the covariate-residualized genotype columns: its diagonal entries are one. The entries of \(D\) are genotype norms, not standard deviations. For example, the sample standard deviation of residualized genotype \(j\), using divisor \(N-1\), is \(d_j/\sqrt{N-1}\). This distinction depends on the intercept and centering; without an intercept, the normalized Gram matrix need not be a Pearson correlation matrix.
Deriving the Conditional Estimates
The marginal regression coefficient for variant \(j\), after adjusting for \(C\), is
Collect the marginal coefficients in \(\hat b\), and define \(X=WD^{-1}\). Since the \(j\)th column of \(X\) has unit length, the vector of marginal cross-products is \(X'y^*=D\hat b\). In the joint regression, the coefficient vector for \(X\) is \(\hat\theta=(X'X)^{-1}X'y^*=R^{-1}D\hat b\). Since \(G\beta\), after removing the covariates, is \(W\beta=XD\beta\), the joint coefficient for \(X\) equals \(D\hat\beta_{\mathrm{cond}}\). Therefore:
This identity requires \(R\) to be invertible. If variants are in exact linear dependence after covariate adjustment, the joint coefficients are not uniquely identified by ordinary least squares. The formula is an exact reconstruction of the joint point estimates when the marginal coefficients come from the same sample and adjustment set. In practice, the genotype matrix is often not available, so the formula is applied to reported summaries and an externally supplied or otherwise reconstructed \(R\); compatibility then becomes a substantive assumption.
Worked Example: Two Correlated Variants With Equal Scales
Suppose a hypothetical analysis reports marginal effects of \(0.080\) and \(0.060\) outcome units per allele, each with standard error \(0.020\). Assume the variants have correlation \(r=0.60\) in the analysis sample, their residualized genotype norms are equal, and the same covariates and participants were used for both marginal estimates and the joint model. The equal-norm assumption makes \(D\) a scalar multiple of the identity, so it cancels from the conditional-effect formula.
Thus the conditional effects are
For an approximate test, further assume the two marginal standard errors can be treated as \(\hat\sigma/d_j=0.020\), using a common residual standard deviation \(\hat\sigma\). The conditional standard error multiplier is \(\sqrt{(R^{-1})_{jj}}=\sqrt{1.5625}=1.25\), so each conditional standard error is \(0.020(1.25)=0.0250\). The resulting statistics are \(0.06875/0.0250=2.75\) and \(0.01875/0.0250=0.750\). Using a standard normal reference distribution, the approximate two-sided \(p\)-values are \(0.0060\) and \(0.453\), respectively. These support evidence of a conditional association for the first variant, but not for the second at a conventional \(0.05\) level; neither result establishes causation.
Standard Errors and Tests From Summary Statistics
Under the linear model, the covariance matrix of the joint coefficient estimates is
Consequently, if \(\hat\sigma\) is an appropriate estimate of the residual standard deviation from the joint model, the conditional standard error for variant \(j\) is \(\hat\sigma\sqrt{(R^{-1})_{jj}}/d_j\). A marginal standard error is approximately \(\hat\sigma/d_j\) when the marginal and joint residual-variance estimates are close. This is often a useful large-sample approximation, but it is not an exact identity: marginal and joint regressions generally have different residual sums of squares and degrees of freedom.
If \(z_j\) is the marginal association statistic, the commonly used summary-statistic approximation is
To see the scaling, under a common residual-variance approximation the marginal statistics satisfy \(z\approx D\hat b/\hat\sigma\). The conditional estimate is \(D^{-1}R^{-1}D\hat b\), and its standard error is \(\hat\sigma\sqrt{(R^{-1})_{jj}}/d_j\). Dividing estimate by standard error gives the displayed expression. The diagonal denominator matters: \(R^{-1}z\) alone is not a standardized conditional test statistic.
For two variants with correlation \(r\), the formula simplifies to
The norm ratios are needed when genotype scales differ. Omitting them silently assumes \(d_1=d_2\), which need not hold even if both variants are encoded as allele counts.
Worked Example: Unequal Genotype Norms
Consider hypothetical marginal effects \(0.030\) and \(0.020\) outcome units per allele, with residualized genotype norms \(d_1=100\) and \(d_2=80\). Let their correlation be \(0.40\). Assume the same-sample and common-covariate conditions above, and use a common residual standard deviation estimate of \(\hat\sigma=1\) outcome unit. The marginal standard errors under this approximation are \(1/100=0.0100\) and \(1/80=0.0125\).
The conditional effects, retaining the scale ratios, are
Here \(\sqrt{(R^{-1})_{jj}}=\sqrt{1/0.84}=1.091\). Thus the conditional standard errors are \(1.091/100=0.01091\) and \(1.091/80=0.01364\). The conditional statistics are \(0.02810/0.01091=2.575\) and \(0.005952/0.01364=0.436\). Their approximate two-sided normal \(p\)-values are \(0.0100\) and \(0.663\). Under the stated approximation, the first variant retains evidence of conditional association; the second does not. The estimates are per allele, while the standard errors and effects are expressed in outcome units per allele.
Near-Collinearity and Interpretation
When two variants are highly correlated, \(R\) is close to singular. The factor \(1/(1-r^2)\) then grows, so small differences between marginal signals can produce large changes in the separate conditional estimates. At the same time, the diagonal elements of \(R^{-1}\) grow, increasing conditional standard errors. This is loss of precision in separating the variants’ associations, not evidence that either estimate is necessarily wrong.
Worked Example: A Nearly Redundant Pair
Suppose hypothetical marginal effects are \(0.040\) and \(0.039\) outcome units per allele, both with standard error \(0.010\), and the variant correlation is \(r=0.99\). Assume equal genotype norms, compatible marginal analyses, and the common-variance approximation. Since \(1-r^2=1-0.9801=0.0199\), the conditional effects are
The conditional standard error for either estimate is \(0.010\sqrt{1/0.0199}=0.07089\). The corresponding statistics are \(0.985\) and \(-0.425\), with approximate two-sided \(p\)-values \(0.325\) and \(0.671\). The signs and magnitudes of the separate estimates should not be read as precise evidence for opposing effects: both estimates are small relative to their uncertainty. The pair’s marginal signals alone do not resolve which variant accounts for association.
Practical Conditions and a Common Mistake
Before applying the formulas, verify that the marginal statistics and \(R\) refer to the same allele orientation, variant set, covariate adjustment, and compatible participants. The matrix must describe correlations of the appropriately covariate-adjusted genotypes for the analytic sample. If it does not, the algebra may still produce numbers, but those numbers need not reproduce the joint regression. Likewise, the standard-error approximation can fail when sample sizes differ across variants, residual variances differ materially, or the outcome model is not the stated linear model.
A common mistake is to calculate \(R^{-1}z\) and report its entries directly as conditional \(z\)-statistics. This omits the uncertainty scaling. For example, in the equal-scale example, the first entry of \(R^{-1}z\) is \(3.4375\), whereas the conditional statistic is \(3.4375/\sqrt{1.5625}=2.75\). The correction is to divide each transformed entry by \(\sqrt{(R^{-1})_{jj}}\), and to interpret the resulting test in light of the common-variance and sample-compatibility assumptions.
The central lesson is that marginal summary statistics do not, by themselves, determine conditional results. They do so only together with a compatible variant-correlation matrix and the scaling information needed for effect estimates. Conditional association remains a statement about statistical adjustment within the specified model; it does not identify a causal variant.
Check Your Understanding
Try to answer each question before reviewing the derivation.
- Why is an intercept in \(C\) important when \(R\) is described as the correlation matrix of residualized genotypes?
- For two variants with equal genotype norms and correlation \(r\), what happens to the conditional standard-error multiplier as \(|r|\) approaches one?
- Why is \(D^{-1}R^{-1}D\hat b\), rather than \(R^{-1}\hat b\), the conditional effect estimate when genotype norms differ?
- What additional factor must be included when converting \(R^{-1}z\) into approximate conditional \(z\)-statistics?
- Name two compatibility conditions needed for marginal summaries and a correlation matrix to reproduce joint-model results.