Why the Reference Genotype Matters
A genotype model needs a way to compare the trait across genotype groups. With indicator coding, one genotype is chosen as the reference genotype; the model represents the other genotypes by their differences from it. This choice determines how the coefficients are written and interpreted. It does not, by itself, change the data, the genotype-specific fitted values, or the underlying comparisons that can be made.
The reference genotype is a model baseline, not necessarily the most common, normal, or biologically preferred genotype. Choosing a different baseline can make a particular contrast easier to read, but the reference choice should not be confused with a claim about which genotype is biologically standard.
Reference-Coded Models for Genotype-Specific Means
Consider a locus with three possible genotypes, denoted \(AA\), \(Aa\), and \(aa\). Let \(Y\) be a quantitative trait and define the genotype-specific mean as \(\mu_g=E(Y\mid G=g)\), where \(G\) denotes genotype. For now, assume a model with an intercept and one indicator for each non-reference genotype. This is a saturated model for the three genotype means: it gives each genotype its own fitted mean.
If \(AA\) is the reference genotype, let \(I(G=Aa)\) equal 1 for individuals with genotype \(Aa\) and 0 otherwise, and define \(I(G=aa)\) in the same way. The model is:
For an \(AA\) individual, both indicators are 0, so the model gives \(E(Y\mid G=AA)=\beta_0\). For an \(Aa\) individual, the first indicator is 1 and the second is 0, so \(E(Y\mid G=Aa)=\beta_0+\beta_{Aa}\). For an \(aa\) individual, the fitted mean is \(\beta_0+\beta_{aa}\). Therefore:
The intercept is the mean for the reference genotype. Each other coefficient is a contrast: the mean for one genotype minus the mean for the reference. A positive coefficient means a larger expected trait value than the reference; a negative coefficient means a smaller expected value. These are differences in the trait’s units.
Worked Example: Coefficients From Quantitative Trait Means
Suppose a hypothetical sample has quantitative trait measurements, in millimetres, of 10, 12, and 11 for \(AA\); 13, 15, and 14 for \(Aa\); and 8, 10, and 9 for \(aa\). Use \(AA\) as the reference and calculate the fitted genotype means and model coefficients.
Check the model setup. The genotype categories are mutually exclusive, and all three have observations. The specified saturated indicator model assigns a separate mean to each category. The calculations describe these group means; they do not imply that genotype caused the observed differences.
The sample mean for \(AA\) is \((10+12+11)/3=33/3=11\) mm. For \(Aa\), it is \((13+15+14)/3=42/3=14\) mm. For \(aa\), it is \((8+10+9)/3=27/3=9\) mm.
With \(AA\) as reference, the intercept estimates the \(AA\) mean, and the other coefficients are mean differences from 11 mm:
Thus, the fitted \(Aa\) mean is \(11+3=14\) mm, and the fitted \(aa\) mean is \(11+(-2)=9\) mm. The \(Aa\) mean is 3 mm above the \(AA\) mean; the \(aa\) mean is 2 mm below it. The coefficients are in millimetres because the outcome is measured in millimetres.
Changing the Reference Changes the Coefficients
The model can use \(Aa\) or \(aa\) as its reference instead. To see the effect, keep the same three genotype-specific means, \(\mu_{AA}\), \(\mu_{Aa}\), and \(\mu_{aa}\). If genotype \(r\) is the reference, then the intercept is \(\mu_r\), and the coefficient for any other genotype \(g\) is \(\mu_g-\mu_r\). The omitted reference category has no indicator coefficient; its contrast with itself is zero.
In the previous example, changing the reference from \(AA\) to \(Aa\) makes the intercept 14 mm. The coefficient for \(AA\) becomes \(11-14=-3\) mm, and the coefficient for \(aa\) becomes \(9-14=-5\) mm. The fitted means remain 11, 14, and 9 mm: only their representation as an intercept plus indicator coefficients has changed.
Worked Example: Re-Expressing Coefficients With a New Reference
Use the hypothetical genotype means \(AA=11\) mm, \(Aa=14\) mm, and \(aa=9\) mm. Suppose the initial model used \(AA\) as the reference, with coefficients \(\hat{\beta}_0=11\), \(\hat{\beta}_{Aa}=3\), and \(\hat{\beta}_{aa}=-2\). Rewrite the model using \(aa\) as the reference.
The new intercept is the \(aa\) mean, 9 mm. The new coefficient for \(AA\) is the difference between the \(AA\) and \(aa\) means, and the new coefficient for \(Aa\) is the difference between the \(Aa\) and \(aa\) means:
Under this coding, the fitted \(AA\) mean is \(9+2=11\) mm, and the fitted \(Aa\) mean is \(9+5=14\) mm. The reference genotype \(aa\) has both indicators equal to zero and therefore has fitted mean 9 mm. All three fitted means match the original model, even though the coefficient values differ.
Genotype-Specific Risks as Contrasts
The same reference principle applies when the outcome is binary. Let \(Y=1\) indicate that an individual has a specified phenotype, and let \(Y=0\) indicate that the phenotype is absent. The genotype-specific risk is \(p_g=P(Y=1\mid G=g)\). Because the conditional mean of a binary outcome equals its probability of being 1, a model that represents genotype-specific risks directly has the same indicator form, with \(p_g\) in place of \(\mu_g\). In this response-scale model, the intercept is the reference-genotype risk and each indicator coefficient is a risk difference from that reference.
This interpretation depends on the response scale. A coefficient in a model whose response is the risk is a difference in risks. A coefficient in a model using a transformed response scale need not be a risk difference. The reference-genotype contrast idea remains useful, but the scale must be stated before interpreting a coefficient.
Worked Example: Risk Differences From Hypothetical Genotype Counts
In a hypothetical sample, 12 of 100 individuals with genotype \(AA\), 20 of 100 with \(Aa\), and 30 of 100 with \(aa\) have a binary phenotype. Use \(AA\) as the reference. Calculate the observed genotype-specific risks and their contrasts with the reference risk.
Check the quantities. Each risk is the number with the phenotype divided by the number observed in that genotype group. All three groups have observations, and each calculated risk is between 0 and 1, as a probability must be.
The risks are \(12/100=0.12\) for \(AA\), \(20/100=0.20\) for \(Aa\), and \(30/100=0.30\) for \(aa\). With \(AA\) as reference, the baseline risk is 0.12, and the differences are:
The fitted risk for \(Aa\) is \(0.12+0.08=0.20\), and for \(aa\) it is \(0.12+0.18=0.30\). On this scale, the \(Aa\) group’s observed risk is 0.08 higher than the \(AA\) group’s risk, or 8 percentage points higher; the \(aa\) group’s observed risk is 18 percentage points higher. These are descriptive group contrasts, not evidence by themselves of a causal genetic effect.
Why Re-Referencing Preserves Fitted Values
The invariance can be verified directly. Let the original reference be genotype \(r\), and write its fitted genotype means as \(\mu_g\). Under reference coding, the intercept is \(\mu_r\), and each non-reference coefficient is \(\mu_g-\mu_r\). Now choose a different reference \(s\). The new intercept is \(\mu_s\), and the coefficient for genotype \(g\ne s\) is \(\mu_g-\mu_s\). For any genotype \(g\ne s\), the new model adds its coefficient to the new intercept:
For genotype \(s\), all indicators are zero, so its fitted value is the new intercept \(\mu_s\). Thus every genotype retains its original fitted value. This algebra shows that a reference change is a re-expression of the same set of genotype-specific means, not a change to those means.
For example, if \(r=AA\) and \(s=Aa\), a coefficient that originally compared \(aa\) with \(AA\) becomes a coefficient comparing \(aa\) with \(Aa\). The new \(aa\) contrast is the old \(aa\)-versus-\(AA\) contrast minus the old \(Aa\)-versus-\(AA\) contrast:
The arithmetic changes because the comparison changes. The fitted genotype means do not. Inference about a particular contrast should likewise be framed as a test or interval for that contrast; a coefficient’s numerical value alone is meaningful only together with its reference and scale.
Common Mistakes and Practical Interpretation
- Calling the reference genotype the control group. The reference is a coding choice. It need not be an experimental control, the most frequent genotype, or the genotype without a phenotype.
- Interpreting an indicator coefficient as the genotype’s mean. The coefficient is the difference between that genotype’s mean and the reference mean. The mean itself is the intercept plus the coefficient.
- Comparing coefficient values from different references as if they were the same contrast. A coefficient always compares its genotype with the model’s current reference. Changing the reference changes what that coefficient compares.
- Confusing a risk difference with a percentage-point statement. A difference of 0.08 in risks is 8 percentage points, not an 8% relative increase. Relative comparisons require a different calculation.
- Treating an observed contrast as causal. A difference in genotype-specific sample means or risks is an association in the observed data. A causal interpretation needs additional assumptions and study design support.
When reporting a genotype model, state the reference genotype, the outcome scale, and the units or probability scale. For instance, “Using \(AA\) as the reference, the fitted mean for \(Aa\) was 3 mm higher” identifies the comparison and gives it a clear interpretation. If the baseline is changed, report the new reference rather than presenting coefficients without their coding context.
Check Your Understanding
Answer each question by naming the reference genotype and the scale of the contrast.
- A model uses \(Aa\) as the reference, with intercept 6.2 units and an \(aa\) coefficient of \(-1.1\) units. What is the fitted \(aa\) mean, and what does the coefficient compare?
- Genotype-specific means are \(AA=4\), \(Aa=7\), and \(aa=5\). If \(aa\) is the reference, calculate the intercept and the coefficients for \(AA\) and \(Aa\).
- Why does changing the reference genotype not change the fitted mean for any genotype in a saturated indicator model?
- A binary-outcome model directly represents risks. If the reference risk is 0.10 and another genotype’s coefficient is 0.06, state the other genotype’s fitted risk and interpret the difference in percentage points.
- Explain why a genotype indicator coefficient cannot be interpreted correctly without knowing the reference genotype and the model’s response scale.