Tutorials › High-Dimensional Genomic Data Analysis › Effect-Size Heterogeneity Across Ancestry Groups

Polygenic Risk Scores · Tutorial 588 of 795

Effect-Size Heterogeneity Across Ancestry Groups

Estimate cross-group effect differences and heterogeneity while checking whether the estimates are genuinely comparable and interpreting their uncertainty cautiously.

Advanced 12 min read

What You'll Learn

  • Define a comparable genetic effect estimand across ancestry groups.
  • Calculate uncertainty for a difference in effect estimates, including when estimates are correlated.
  • Use inverse-variance weighting and Cochran’s Q to assess heterogeneity across groups.
  • Interpret random-effects heterogeneity estimates and their limitations.
  • Diagnose how population structure and ancestry-correlated exposures can mimic effect differences.
  • Separate evidence of effect heterogeneity from explanations for that heterogeneity.

Why Compare Genetic Effects Across Ancestry Groups?

A polygenic score may predict an outcome less accurately in one ancestry group than another, but that performance gap does not by itself show that the underlying genetic effects differ. Differences in allele frequencies, linkage disequilibrium, measurement, and prediction can all affect portability. Here the question is narrower: do comparable estimates of a genetic effect differ across groups beyond what sampling variation would plausibly produce?

The comparison is meaningful only when the estimates target the same quantity. For a variant, this generally means the same allele contrast, the same phenotype definition and scale, and a sufficiently comparable association model. A difference in marginal association can arise because a variant tags a causal variant differently across groups; that is not necessarily a difference in the causal effect. The earlier material on portability and LD mismatch is relevant to that distinction.

Definition: Effect-size heterogeneity across groups is variation in the underlying effect estimates for a specified genetic contrast and phenotype across the groups being compared. It is distinct from observed variation among estimates caused by sampling error. A statistical test can assess whether observed variation exceeds what sampling error predicts; it cannot, by itself, establish a biological explanation.

Set Up a Comparable Comparison

Let \(\hat{\beta}_{gj}\) denote the estimated effect for variant \(j\) in ancestry group \(g\), and let \(SE_{gj}\) be its standard error. For example, \(\beta_{gj}\) might be the change in a quantitative phenotype, in its stated units, per additional copy of the effect allele. For a binary phenotype, it might instead be an effect on the log-odds scale. Those are different estimands, so effects from different scales should not be compared as though they were interchangeable.

Before testing heterogeneity, verify that allele coding is aligned, phenotype units and transformations are consistent, and the association models target comparable effects. In particular, a per-allele effect on a raw phenotype scale need not equal a per-allele effect after group-specific standardization. Also check whether the estimates come from independent samples. If samples overlap, their estimates may be correlated and the covariance must be included in uncertainty calculations.

For two groups, the estimated difference is \(\hat{\Delta}_j=\hat{\beta}_{1j}-\hat{\beta}_{2j}\). If the estimates are independent and approximately normal, its standard error is the square root of the sum of their variances. If they are correlated, subtract twice their covariance.

$$ SE(\hat{\Delta}_j) = \sqrt{SE_{1j}^{\,2}+SE_{2j}^{\,2}-2\operatorname{Cov}(\hat{\beta}_{1j},\hat{\beta}_{2j})} $$

Under the null hypothesis \(H_0:\beta_{1j}=\beta_{2j}\), a Wald statistic is \(z=\hat{\Delta}_j/SE(\hat{\Delta}_j)\). With a normal approximation, the two-sided p-value is \(2P(Z\geq |z|)\), where \(Z\sim N(0,1)\). This approximation is most credible when the estimates are sufficiently precise and the association model and standard errors are appropriate. A small p-value is evidence against equal effects under the model; it is not the probability that the null hypothesis is true.

Worked Example: Testing a Difference Between Two Estimates

Suppose hypothetical independent studies estimate a variant’s effect on the same quantitative phenotype in the same units. The estimates are \(0.30\) phenotype units per effect allele with \(SE=0.05\) in group 1 and \(0.15\) units per allele with \(SE=0.04\) in group 2. Assume the allele coding and phenotype scale match, the estimates are approximately normal, and there is no sample overlap.

The estimated difference is \(0.30-0.15=0.15\) phenotype units per allele. Independence gives \(SE(\hat{\Delta})=\sqrt{0.05^2+0.04^2}=\sqrt{0.0041}=0.06403\) units per allele.

Thus \(z=0.15/0.06403\approx2.343\), giving a two-sided p-value of approximately \(0.01916\). A 95% normal interval for the difference is \(0.15\pm1.96(0.06403)\), or approximately \((0.02450,0.2755)\) phenotype units per allele. Under the stated model, the interval excludes zero and the test provides evidence of a difference. It does not establish why the estimates differ or show that the difference is causal.

Worked Example: Calculating an Interval Without Rounding Errors

In another hypothetical comparison, the estimated difference is \(0.1563\) phenotype units per allele and its standard error is \(0.0599\) units per allele. A normal approximation is assumed appropriate.

The 95% interval is \(0.1563\pm1.96(0.0599)\). Using the displayed values, \(1.96(0.0599)=0.117404\), so the endpoints are \(0.1563-0.117404=0.038896\) and \(0.1563+0.117404=0.273704\). Rounded to four significant figures, the interval is \((0.03890,0.2737)\) phenotype units per allele. The interval describes uncertainty in the estimated difference; it is not a 95% probability statement about a fixed parameter.

Assessing Heterogeneity Across Several Groups

For \(G\) groups, a common-effect model assumes each group estimates one shared effect, with differences among estimates arising from sampling error. An inverse-variance weighted estimate under that model is \(\hat{\beta}_{\mathrm{FE}}=\sum_g w_g\hat{\beta}_g/\sum_g w_g\), where \(w_g=1/SE_g^2\). Cochran’s \(Q\) measures the weighted squared departures from that common estimate.

$$ Q=\sum_{g=1}^{G}w_g(\hat{\beta}_g-\hat{\beta}_{\mathrm{FE}})^2, \qquad w_g=\frac{1}{SE_g^2} $$

If estimates are independent, approximately normal, their standard errors are valid, and a common underlying effect is true, then \(Q\) is approximately distributed as a chi-squared random variable with \(G-1\) degrees of freedom. A large \(Q\) relative to that reference distribution is evidence that the estimates vary more than the common-effect sampling model predicts. The test can have low power when there are few groups or imprecise estimates, so a non-significant result is not proof of identical effects.

For two independent groups, \(Q\) equals the squared difference divided by its variance. This shows why the two-group Wald test and the two-group heterogeneity test give the same evidence when their assumptions match.

$$ Q = \frac{(\hat{\beta}_1-\hat{\beta}_2)^2} {SE_1^2+SE_2^2} = z^2 $$

To see the identity, write \(w_g=1/SE_g^2\). With two groups, the weighted mean lies between the estimates, and its distances from them are \(\hat{\beta}_1-\hat{\beta}_{\mathrm{FE}}=w_2(\hat{\beta}_1-\hat{\beta}_2)/(w_1+w_2)\) and \(\hat{\beta}_2-\hat{\beta}_{\mathrm{FE}}=-w_1(\hat{\beta}_1-\hat{\beta}_2)/(w_1+w_2)\). Substituting these into \(Q\) gives \(Q=(\hat{\beta}_1-\hat{\beta}_2)^2w_1w_2/(w_1+w_2)\). Since \(w_1w_2/(w_1+w_2)=1/(SE_1^2+SE_2^2)\), the stated identity follows.

Worked Example: Computing Cochran’s Q for Three Groups

Consider hypothetical estimates of one allele’s effect on a consistently measured quantitative phenotype: \(0.20\) with \(SE=0.05\), \(0.05\) with \(SE=0.04\), and \(0.10\) with \(SE=0.06\). Suppose the samples are independent, alleles are aligned, and estimates are approximately normal.

The inverse-variance weights are \(400\), \(625\), and \(277.78\). Therefore, \(\hat{\beta}_{\mathrm{FE}}=(400(0.20)+625(0.05)+277.78(0.10))/(400+625+277.78)=139.0278/1302.78\approx0.1067\) phenotype units per allele.

Substituting the deviations gives \(Q=400(0.20-0.1067)^2+625(0.05-0.1067)^2+277.78(0.10-0.1067)^2\approx5.504\). There are \(G-1=2\) degrees of freedom. For a chi-squared distribution with 2 degrees of freedom, the upper-tail probability is approximately \(e^{-Q/2}=e^{-2.752}\approx0.0638\). At the 0.05 level, this is not sufficient evidence to reject the common-effect model. It does not show that effects are exactly equal; with only three groups, the test has limited ability to detect modest heterogeneity.

Quantifying Variation and Interpreting Its Source

A heterogeneity test answers whether observed differences are unusual under a common-effect model; it does not express the size of between-group variation in the original units. A random-effects model instead represents group effects as \(\beta_g=\mu+u_g\), where \(u_g\) has mean zero and variance \(\tau^2\). Here \(\tau^2\) is between-group effect variance, in squared effect units, and \(\tau\) is its standard deviation in effect units.

One simple method-of-moments estimate is the DerSimonian–Laird estimate: \(\hat{\tau}^2=\max\{0,(Q-(G-1))/C\}\), where \(C=\sum_g w_g-\sum_g w_g^2/\sum_g w_g\). It is an estimate, not a test result or a biological explanation. With few groups it can be unstable, and its value depends on the groups and effect scale under analysis. A confidence interval for \(\tau^2\) or \(\tau\) is preferable when the aim is to quantify uncertainty in the magnitude of heterogeneity.

Even strong statistical evidence for heterogeneity leaves several explanations open. Ancestry-correlated environmental exposures, imperfect control of population structure, phenotype ascertainment, and differences in measurement can bias group-specific estimates. For example, a genetic association can partly reflect a non-genetic exposure if that exposure is correlated with genotype within a group. Differences in allele frequency or LD can also change the marginal association of a tag variant even when the causal variant’s effect is shared. Thus, heterogeneity is a pattern in estimates; it does not automatically identify a difference in causal biology.

Worked Example: How Ancestry-Correlated Confounding Can Mimic Heterogeneity

Consider a hypothetical within-group model \(Y=\beta G+\gamma U+\varepsilon\), where \(G\) is allele count, \(U\) is an unmeasured exposure, and \(\varepsilon\) is residual noise. Suppose the true genetic effect is \(\beta=0.10\) phenotype units per allele in both groups and \(\gamma=0.50\) phenotype units per exposure unit. If \(U\) is omitted and \(\operatorname{Cov}(G,\varepsilon)=0\), the population regression coefficient for \(G\) is \(\beta+\gamma\operatorname{Cov}(G,U)/\operatorname{Var}(G)\).

Suppose the covariance-to-variance ratio is \(0.10\) in group 1 and \(0.02\) in group 2. The omitted-variable contributions are \(0.50(0.10)=0.05\) and \(0.50(0.02)=0.01\), respectively. The expected observed estimates are therefore \(0.15\) and \(0.11\) units per allele, despite the shared true genetic effect of \(0.10\). The apparent difference is \(0.04\) units per allele. A heterogeneity test may detect a difference in the observed associations, but it cannot distinguish this confounding mechanism from a true difference in genetic effects.

Diagnostics, Alternatives, and Limitations

A useful analysis examines estimates and uncertainty before focusing on a single p-value. Plot group-specific estimates with confidence intervals, verify allele alignment and units, check sample overlap and model specification, and investigate whether a small number of groups or extreme estimates dominate \(Q\). For genome-wide comparisons, account for the fact that many variants are tested; nominal evidence at one variant does not automatically control the overall false-positive rate. Related variants also are not independent evidence, so a collection of variant-level tests cannot be treated as independent without justification.

The common-effect approach is useful when the goal is to test consistency under one shared effect, but it can be misleading if effects truly vary. A random-effects model allows variation and estimates its spread, but does not solve confounding, and its estimate may be imprecise with few groups. Pairwise difference tests are direct and easy to interpret for two groups, but multiple pairwise comparisons increase the testing burden. These approaches answer related but distinct questions; none alone identifies the cause of a difference.

When estimates overlap in samples, use their covariance rather than the independent-sample formula. When allele coding differs, align alleles and signs before comparison. If the phenotype scale differs, transform or re-estimate effects on a common, scientifically meaningful scale rather than comparing raw coefficients mechanically. Finally, ancestry groups are broad labels for heterogeneous populations, not discrete biological mechanisms. A group-specific estimate is conditional on the sampled people, methods, and context; generalization beyond them requires additional evidence.

Common pitfall: “The estimate is significant in one group but not significant in another, so the effects differ.” This reasoning is invalid: one estimate may simply be more precise. Test the difference directly using its standard error, or use a formal heterogeneity test. Then assess whether confounding, scale, LD, or other design differences could explain the pattern before interpreting it as effect modification.
Key takeaway: Estimate heterogeneity only after defining a comparable genetic effect. Quantify sampling uncertainty explicitly, use a formal comparison rather than contrasting separate significance decisions, and treat statistical heterogeneity as evidence of variation in estimates—not as proof of a biological cause.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. Two independent groups have estimates \(0.24\) and \(0.08\) phenotype units per allele, with standard errors \(0.04\) and \(0.05\). Calculate the difference, its standard error, and the Wald statistic.
  2. Why does a significant association in one group and a non-significant association in another fail to establish heterogeneity?
  3. For \(G=4\) independent, approximately normal group estimates, what degrees of freedom are used for Cochran’s \(Q\) under the common-effect model?
  4. Name two ways ancestry-correlated confounding can produce apparent effect heterogeneity.
  5. If a variant’s marginal association differs across groups because it tags a causal variant differently, what does that imply about a claim of differing causal effects?

Solutions. (1) The difference is \(0.24-0.08=0.16\) units per allele. Its standard error is \(\sqrt{0.04^2+0.05^2}=\sqrt{0.0041}=0.06403\) units per allele, so \(z=0.16/0.06403\approx2.499\); the two-sided normal p-value is approximately \(0.01246\). (2) The two estimates may have different precision. The relevant evidence is the difference relative to its own standard error, not whether each separate test crosses a threshold. (3) The degrees of freedom are \(G-1=3\). (4) Examples include an unmeasured exposure correlated with genotype within a group and residual population structure correlated with both genotype and phenotype. (5) A differing marginal association does not establish differing causal effects; it may reflect LD and requires further investigation of the variant’s tagging relationship.

Clinical Biostats