Tutorials › Statistical Genetics › Ancestry Structure in Gene–Environment Analysis

Gene–Environment Interaction · Tutorial 807 of 989

Ancestry Structure in Gene–Environment Analysis

See how ancestry can change the composition of genotype–exposure groups, and how adjustment, stratification, and heterogeneity checks help interpret interaction estimates.

Advanced 10 min read

What You'll Learn

  • Define compositional ancestry confounding for an additive gene–environment interaction contrast
  • Calculate pooled and ancestry-standardized contrasts from stratum-specific outcome means
  • Explain how allele-frequency and exposure differences can change ancestry weights across genotype–exposure cells
  • Distinguish compositional confounding from genuine ancestry-specific interaction heterogeneity
  • Identify assumptions and limits of ancestry adjustment, stratification, and residual heterogeneity checks

Why Ancestry Structure Matters for G×E

A pooled genotype–environment interaction estimate can reflect more than the within-ancestry relationship between genotype, exposure, and outcome. Allele frequencies may differ across ancestry groups, and exposure prevalence may differ as well. Consequently, the ancestry composition of one genotype–exposure group can differ from the composition of another. If ancestry also predicts the outcome, comparing those groups can mix within-ancestry differences with between-ancestry differences.

The key is to keep two issues separate. Compositional ancestry confounding arises when ancestry weights differ across genotype–exposure groups and those differences distort the pooled contrast relative to a specified common-composition contrast. Ancestry-specific effect heterogeneity arises when the interaction contrast itself differs across ancestry strata. Heterogeneity can occur even when all genotype–exposure groups have the same ancestry composition; it is not, by itself, compositional confounding.

Definition: For a quantitative outcome, let \(\mu_{ge,a}=E[Y\mid G=g,E=e,A=a]\), where \(G\) and \(E\) are binary genotype and exposure indicators and \(A\) denotes ancestry stratum. The ancestry-specific additive interaction is \(\Delta_a=\mu_{11,a}-\mu_{10,a}-\mu_{01,a}+\mu_{00,a}\). A pooled contrast is compositionally confounded relative to a target common ancestry distribution when its use of different ancestry weights in the four genotype–exposure groups distorts the contrast relative to the contrast standardized to that common distribution.

This definition concerns distortion of a contrast, not whether ancestry-specific effects are equal. It also does not, on its own, establish a causal interaction. The interpretation depends on the outcome, genotype and exposure definitions, analysis scale, and assumptions supporting causal claims.

How Different Ancestry Weights Enter the Contrast

Let \(w_{ge,a}=P(A=a\mid G=g,E=e)\) be the ancestry proportion in a particular genotype–exposure group. The pooled mean in that group is a weighted average of its ancestry-specific means:

$$ \mu_{ge}=\sum_a w_{ge,a}\mu_{ge,a}. $$

Because the weights may vary across the four groups, the pooled additive interaction is

$$ \Delta_{\mathrm{pooled}} =\sum_a w_{11,a}\mu_{11,a} -\sum_a w_{10,a}\mu_{10,a} -\sum_a w_{01,a}\mu_{01,a} +\sum_a w_{00,a}\mu_{00,a}. $$

To compare like with like, choose target weights \(q_a\), with \(q_a\geq 0\) and \(\sum_a q_a=1\), and use those same weights for all four means. The standardized contrast is

$$ \Delta_q =\sum_a q_a\Delta_a =\sum_a q_a\mu_{11,a} -\sum_a q_a\mu_{10,a} -\sum_a q_a\mu_{01,a} +\sum_a q_a\mu_{00,a}. $$

The target \(q_a\) might represent an overall study population or another population relevant to the research question. It is part of the estimand: different target weights can give different summaries when interaction effects vary by ancestry.

Worked Example: A Pooled Interaction With No Within-Ancestry Interaction

Worked Example: A Pooled Interaction With No Within-Ancestry Interaction

Suppose two ancestry strata, A and B, have the following hypothetical mean outcomes. The outcome is measured in units. Within each stratum, it increases by 2 units for \(G=1\) and by 3 units for \(E=1\), with no additive interaction.

Ancestry\(\mu_{00,a}\)\(\mu_{10,a}\)\(\mu_{01,a}\)\(\mu_{11,a}\)\(\Delta_a\)
A101213150
B202223250

For A, \(\Delta_A=15-12-13+10=0\) units. For B, \(\Delta_B=25-22-23+20=0\) units. Now suppose the proportion from B is 0.1 among \(G=0,E=0\), 0.2 among \(G=1,E=0\), 0.2 among \(G=0,E=1\), and 0.9 among \(G=1,E=1\). These different weights could arise when allele and exposure distributions both vary with ancestry.

The pooled means are \(11\), \(14\), \(15\), and \(24\) units, respectively:

$$ \begin{aligned} \mu_{00}&=0.9(10)+0.1(20)=11,\\ \mu_{10}&=0.8(12)+0.2(22)=14,\\ \mu_{01}&=0.8(13)+0.2(23)=15,\\ \mu_{11}&=0.1(15)+0.9(25)=24. \end{aligned} $$

Thus, \(\Delta_{\mathrm{pooled}}=24-14-15+11=6\) units, even though both ancestry-specific interactions are zero. With equal target weights \(q_A=q_B=0.5\), the standardized contrast is \(\Delta_q=0.5(0)+0.5(0)=0\) units. The pooled result differs because the ancestry composition changes across the four groups, and ancestry B has outcome means 10 units higher in every cell.

The example does not say that every ancestry difference in allele or exposure frequency creates bias. The distortion depends on how the ancestry weights vary across the four cells and on how the ancestry-specific outcome means combine in the contrast.

A Short Decomposition: Composition and Within-Stratum Effects

The difference between pooled and standardized contrasts can be written directly. Subtract the common-weight contrast from the pooled contrast, aligning the four signed cell means:

$$ \Delta_{\mathrm{pooled}}-\Delta_q =\sum_a (w_{11,a}-q_a)\mu_{11,a} -\sum_a (w_{10,a}-q_a)\mu_{10,a} -\sum_a (w_{01,a}-q_a)\mu_{01,a} +\sum_a (w_{00,a}-q_a)\mu_{00,a}. $$

This identity follows by substituting the expressions for \(\Delta_{\mathrm{pooled}}\) and \(\Delta_q\) and collecting the coefficients of each \(\mu_{ge,a}\). It shows that the difference depends on deviations of each cell’s ancestry weights from the chosen common weights, multiplied by the corresponding ancestry-specific means. If the weights are identical across all four cells and equal to \(q_a\), every coefficient difference is zero, so \(\Delta_{\mathrm{pooled}}=\Delta_q\). The stratum-specific interactions may still differ; equal composition does not imply homogeneous effects.

Key distinction: Unequal ancestry weights across genotype–exposure cells can create a composition difference between pooled and standardized contrasts. Unequal \(\Delta_a\) values indicate effect heterogeneity. These features can occur separately or together, so report and assess them separately.

Worked Example: Heterogeneity Without Compositional Confounding

Worked Example: Heterogeneity Without Compositional Confounding

Consider another hypothetical study in which each of the four genotype–exposure cells is 50% A and 50% B. The ancestry-specific means, in outcome units, are:

Ancestry\(\mu_{00,a}\)\(\mu_{10,a}\)\(\mu_{01,a}\)\(\mu_{11,a}\)\(\Delta_a\)
A101112152
B202223338

The stratum contrasts are \(\Delta_A=15-11-12+10=2\) units and \(\Delta_B=33-22-23+20=8\) units. Since every cell has the same ancestry weights, the pooled means are \(15\), \(16.5\), \(17.5\), and \(24\) units. The pooled contrast is

$$ \Delta_{\mathrm{pooled}}=24-16.5-17.5+15=5\text{ units}. $$

With \(q_A=q_B=0.5\), the standardized contrast is \(\Delta_q=0.5(2)+0.5(8)=5\) units, exactly the pooled value. There is no compositional difference between the pooled and standardized contrasts, but there is genuine stratum-specific heterogeneity: the interaction contrast is 2 units in A and 8 units in B. The pooled 5-unit result is an average for the specified equal-weight target, not a claim that either stratum has an interaction of 5 units.

Adjustment, Stratification, and What They Require

Ancestry adjustment aims to compare genotype–exposure groups at a common ancestry composition, or to estimate a model-based conditional contrast. Its success depends on the chosen model and on adequate data. For example, in the first worked example, the conditional mean model is

$$ E[Y\mid G,E,A]=10+10I(A=B)+2G+3E, $$

where \(I(A=B)\) equals 1 for stratum B and 0 for stratum A. This model includes an ancestry difference in the outcome level but has no \(G\times E\) term. It reproduces all eight ancestry-specific cell means in that example, so adjustment for ancestry recovers a zero additive interaction under the model. A model that omits ancestry would instead report the 6-unit pooled contrast.

In practice, ancestry may be represented by ancestry strata, ancestry proportions, or principal components that summarize genetic variation. These are not interchangeable guarantees of control. The adjustment must adequately represent the relevant ancestry-related structure, and the analysis needs enough observations across ancestry, genotype, and exposure combinations to estimate the desired contrasts. If ancestry-specific genotype or exposure slopes differ, simply adding an ancestry main effect may not capture that pattern. If interaction effects differ by ancestry, a model that forces one common \(G\times E\) effect may be an unsuitable summary for the scientific question.

Stratification makes the comparison explicit: estimate the interaction within each ancestry stratum, then report the stratum-specific contrasts or combine them using stated target weights. This requires enough data and variation within each stratum. If a genotype–exposure cell is absent or extremely rare in a stratum, its contrast may not be estimable with useful precision there. A pooled regression can sometimes be more efficient, but efficiency does not repair a misspecified model or create information where the data have little overlap.

For continuous outcomes, an ancestry-heterogeneity assessment can compare a model with a common interaction effect to one that allows the \(G\times E\) interaction to vary with ancestry. With discrete ancestry strata, this means including ancestry-by-\(G\times E\) terms and testing them jointly. A small p-value is evidence against a common interaction under the model and assumptions used; a large p-value does not prove homogeneity, particularly when stratum estimates are imprecise. Inspect the stratum estimates and their uncertainty as well as the test.

Worked Example: Choosing a Common-Composition Estimate

Worked Example: Choosing a Common-Composition Estimate

Suppose a researcher has estimated stratum-specific additive interactions of 2 units in A and 8 units in B, as in the second worked example. The study population of interest is 60% A and 40% B. The target weights are therefore \(q_A=0.6\) and \(q_B=0.4\). The target-standardized contrast is

$$ \Delta_q=0.6(2)+0.4(8)=1.2+3.2=4.4\text{ units}. $$

The arithmetic gives a 4.4-unit interaction contrast for the specified target ancestry distribution, under the stratum-specific estimates and the standardization assumptions. It differs from the equal-weight value of 5 units because the target population assigns more weight to A, where the estimated interaction is smaller. Neither weighted estimate replaces the stratum-specific results when those differences matter to the scientific question.

To interpret this standardization, the outcome means must be estimable for the relevant genotype–exposure cells in both strata, and the selected weights must correspond to the intended target. If one stratum has no observations for a needed cell, the calculation cannot be supported by observed stratum-specific means without additional modeling assumptions.

Common Pitfalls and Interpretation

  • Calling every ancestry-specific difference confounding. Different \(\Delta_a\) values are effect heterogeneity. They can occur even with identical ancestry weights in every cell, as the second example shows.
  • Assuming a pooled contrast is automatically a common effect. With different cell compositions, the pooled contrast may combine ancestry-specific means using different weights in each term. State the target contrast and the weights used.
  • Assuming adjustment is sufficient because ancestry is included in a regression. Adjustment works only insofar as the covariates and model represent the relevant structure, the needed cells have support, and the estimand is clearly defined. Main effects alone do not automatically address ancestry-specific interaction heterogeneity.
  • Treating a nonsignificant heterogeneity test as proof of equal effects. Such a test may have limited power. Report stratum-specific estimates and uncertainty, and interpret the test in light of the available data.
  • Interpreting ancestry as a simple biological cause. Ancestry measures summarize aspects of population history and genetic similarity; they may also track social, geographic, or environmental differences. Statistical adjustment does not, by itself, identify which pathways produced an association.
Key takeaway: First compare ancestry weights across the four genotype–exposure cells; then compare interaction contrasts across ancestry strata. The first diagnoses compositional distortion relative to a common target distribution, while the second assesses effect heterogeneity. Adjustment or standardization should be tied to a stated target and supported by the model and data.

Check Your Understanding

Use the definitions and calculations above to answer these questions.

  1. If ancestry weights are identical in all four genotype–exposure cells but the stratum-specific interaction contrasts differ, which issue is present: compositional confounding, heterogeneity, or both?
  2. In the first worked example, why does the pooled contrast equal 6 units even though both stratum-specific contrasts equal zero?
  3. What does choosing target weights \(q_a\) specify when calculating a standardized interaction contrast?
  4. Why might adding ancestry as a main effect fail to represent an ancestry-specific \(G\times E\) interaction?
  5. Why does a nonsignificant test of ancestry-specific interaction differences not establish that the effects are equal?
Clinical Biostats