Why Dosage Coding and Score Scale Matter
A polygenic score combines allele dosages with estimated per-allele effects. Its numerical value depends on what each dosage counts and how that dosage is represented. Two analysts can use the same genotypes and biological association information yet report scores with different signs or scales if one counts the opposite allele, centers the genotypes, or standardizes them without transforming the coefficients.
These changes need not alter the prediction represented by the model. A consistent change of coding can be accompanied by a corresponding change in coefficients and intercept. The key is to distinguish a change in the representation of the predictors from a change in the underlying fitted value. The introductory material on defining the polygenic risk score estimand motivates why the target quantity and its units should be stated before score values are interpreted.
A dosage may be an expected allele count rather than an observed integer, for example when genotype uncertainty is represented by a dosage of 0.73. The interpretation of \(\beta_j\) remains a change per additional allele copy under the fitted model. A positive coefficient means that larger dosage of the designated effect allele is associated with a higher modeled trait value; a negative coefficient means the modeled value decreases as that dosage increases. This interpretation concerns association in the model and does not, by itself, establish causation.
Effect-Allele Orientation and Score Direction
The effect allele is the allele whose dosage is multiplied by the reported coefficient. A coefficient is not interpretable apart from this coding: switching the counted allele switches the dosage direction. At a diploid biallelic variant, if \(G_{ij}\) counts copies of one allele, the dosage \(G'_{ij}\) for the other allele is \(2-G_{ij}\). A coefficient for the alternative coding must also change sign, with an intercept adjustment if the model includes an intercept.
For a single variant, the original contribution is \(\beta G\). Under the alternative coding, use \(\beta'=-\beta\). Then \(\beta'G'=-\beta(2-G)=\beta G-2\beta\). The contributions differ by a constant, not by a change in how individuals are ordered. Centering both dosages at their corresponding means removes that constant and gives identical contributions. Across variants, the total offset is the sum of the per-variant constants.
Worked Example: Reversing the Counted Allele
Suppose a hypothetical trait is measured in mmHg. At one diploid variant, an individual’s dosage of allele A is \(G=1.4\), the allele-A frequency is \(p=0.30\), and the estimated coefficient is \(\beta=0.25\) mmHg per allele A. The dosage is fractional because it represents an expected count.
The raw contribution is \(\beta G=0.25(1.4)=0.35\) mmHg. The mean allele-A dosage under the stated frequency is \(2p=0.60\). If the opposite allele B is counted instead, its dosage is \(G'=2-1.4=0.6\), and its coefficient must be \(\beta'=-0.25\) mmHg per allele B. The alternative raw contribution is \(\beta'G'=-0.25(0.6)=-0.15\) mmHg.
The difference is a constant: \(-0.15=0.35-2(0.25)\). For centered contributions, allele A gives \(0.25(1.4-0.6)=0.20\) mmHg. The allele-B mean dosage is \(2(1-0.30)=1.4\), so allele B gives \(-0.25(0.6-1.4)=0.20\) mmHg. Thus the centered contribution is unchanged by the reversal when the coefficient is reversed as well.
The arithmetic above assumes that the dosages truly refer to opposite alleles at the same biallelic variant and use the same ploidy. In practice, the variant and effect-allele identity must be aligned between the estimates and the target genotypes; allele harmonization addresses that prerequisite. A sign change made without changing the counted allele, or a dosage reversal without reversing the coefficient, changes the score rather than merely recoding it.
Raw and Centered Scores
A raw score uses the observed dosage directly. Its origin depends on the coding: an individual with zero copies at every included variant has raw score zero, regardless of the average genotype in the target population. A centered score subtracts each variant’s reference mean dosage before weighting. If \(p_j\) is the frequency of the counted effect allele in a specified reference population, the expected dosage mean is \(2p_j\) for diploid genotypes. The centered score is therefore \(S_{i,c}=\sum_j\beta_j(G_{ij}-2p_j)\).
Subtracting these means changes the score only by a constant shared by all individuals, provided the frequencies and coefficients are fixed. In particular, \(S_{i,c}=S_i-\sum_j2p_j\beta_j\). The centered score has mean zero in the reference population when the dosage means are \(2p_j\) there. It does not generally have mean zero in a different target population, nor does centering alone make the score have unit variance.
Worked Example: Raw Versus Centered Score
Consider two hypothetical variants and an individual with dosages \(G_1=1\) and \(G_2=2\). The effect-allele frequencies in the specified reference population are \(p_1=0.25\) and \(p_2=0.50\). The estimated coefficients are \(\beta_1=0.40\) and \(\beta_2=-0.30\) trait units per allele.
The raw score is \(S=0.40(1)+(-0.30)(2)=0.40-0.60=-0.20\) trait units. The mean dosages are \(2p_1=0.50\) and \(2p_2=1.00\). Thus the centered score is \(S_c=0.40(1-0.50)-0.30(2-1.00)=0.20-0.30=-0.10\) trait units.
The constant subtracted from the raw score is \(\sum_j2p_j\beta_j=0.50(0.40)+1.00(-0.30)=0.20-0.30=-0.10\). Consequently, \(S_c=S-(-0.10)=-0.20+0.10=-0.10\), agreeing with the direct calculation. The two score values differ, but every individual’s score is shifted by the same constant under this fixed centering scheme.
Standardizing Dosages and Rescaling Effects
Standardizing a genotype dosage means subtracting its mean and dividing by a positive scale, commonly its standard deviation. Under Hardy–Weinberg equilibrium for a diploid biallelic variant with effect-allele frequency \(p_j\), the dosage mean is \(2p_j\), and the dosage variance is \(2p_j(1-p_j)\). The corresponding population-standardized dosage is \(Z_{ij}=(G_{ij}-2p_j)/\sqrt{2p_j(1-p_j)}\), when \(0<p_j<1\). The denominator is the standard deviation, not the variance.
If \(\beta_j\) is an effect per allele copy, the coefficient for \(Z_{ij}\) must be \(\gamma_j=\beta_j\sqrt{2p_j(1-p_j)}\). Then the weighted standardized contribution is exactly the centered contribution: \(\gamma_jZ_{ij}=\beta_j(G_{ij}-2p_j)\). This identity is a change of units for the predictor and its coefficient, not a new association estimate. In contrast, multiplying standardized genotypes by the original per-allele coefficients generally gives a different quantity.
The Hardy–Weinberg variance formula is a modeling choice about the genotype distribution. It should not be silently treated as the observed variance in every target sample. Population structure, relatedness, sampling variation, or dosage uncertainty can make the target-sample variance differ from \(2p_j(1-p_j)\). When using a frequency-based standardization, record the allele-frequency source and standardization convention so that the score’s scale is reproducible.
Worked Example: Standardized Dosages With Consistent Coefficients
Use the same hypothetical two-variant data as above: \(p_1=0.25\), \(p_2=0.50\), dosages \(G_1=1\), \(G_2=2\), and per-allele effects \(0.40\) and \(-0.30\) trait units. Assume the frequency-based standard deviations from the diploid Hardy–Weinberg model.
For variant 1, the variance is \(2(0.25)(0.75)=0.375\), so its standard deviation is \(\sqrt{0.375}=0.612372\). Its standardized dosage is \(Z_1=(1-0.50)/0.612372=0.816497\). For variant 2, the variance is \(2(0.50)(0.50)=0.50\), so its standard deviation is \(\sqrt{0.50}=0.707107\). Its standardized dosage is \(Z_2=(2-1.00)/0.707107=1.414214\).
The matching standardized-genotype coefficients are \(\gamma_1=0.40(0.612372)=0.244949\) and \(\gamma_2=-0.30(0.707107)=-0.212132\), in trait units per standardized genotype unit. The score is \(0.244949(0.816497)-0.212132(1.414214)=0.200000-0.300000=-0.100000\) trait units. It equals the centered score because each standardized contribution equals its centered per-allele contribution.
If the original per-allele coefficients were instead multiplied directly by these standardized dosages, the result would be \(0.40(0.816497)-0.30(1.414214)=0.326599-0.424264=-0.097665\). That is not the centered score of \(-0.100000\) trait units. It is not the same weighted predictor under a mere change of genotype units; the coefficients were not rescaled.
Comparing Score Conventions and Checking Their Use
| Representation | Genotype input | Coefficient for the same predictor | What changes |
|---|---|---|---|
| Raw dosage | \(G_{ij}\) | \(\beta_j\), per allele copy | Score origin depends on allele coding |
| Centered dosage | \(G_{ij}-\mu_j\) | \(\beta_j\), per allele copy | A fixed constant is removed from the raw score |
| Standardized dosage | \((G_{ij}-\mu_j)/s_j\) | \(\beta_js_j\), per standardized unit | Predictor units change; coefficient must change too |
A further operation is to standardize the completed score across a sample, for example by subtracting its sample mean and dividing by its sample standard deviation. That is different from standardizing each genotype before combining them. A score standardized this way is expressed in score standard-deviation units, not in the original trait units. Report which operation was used and which population supplied the mean and scale.
Useful checks include verifying that effect-allele labels match the dosages, that the sign of each coefficient is interpreted against the allele actually counted, and that score differences attributed to standardization are not caused by using coefficients on the wrong scale. If a variant is nearly monomorphic, its frequency-based standard deviation is near zero; at frequency zero or one, the formula cannot standardize it at all. Such a variant provides no dosage variation in that population, and division by its standard deviation is undefined or unstable.
Raw scores are convenient when coefficients are reported per allele and scores must retain their direct additive interpretation. Centered scores make the reference origin explicit and remove a constant offset. Standardized genotypes can put variants on comparable predictor scales, but that convenience is useful only when coefficients are converted to the matching units. These conventions are not interchangeable unless the transformations are tracked. Score magnitudes from different cohorts or software implementations should not be compared as if they shared a scale until allele orientation, centering frequencies, standard deviations, and any final score standardization have been checked.
Common Mistakes and Limitations
- Reading a coefficient without its allele. A positive coefficient is an increase per copy of the specified effect allele, not an increase per copy of whichever allele a data file happens to count.
- Flipping dosage but retaining the coefficient sign. For a diploid biallelic recoding \(G'=2-G\), the matching coefficient changes from \(\beta\) to \(-\beta\); otherwise the model contribution changes direction.
- Calling a centered score a standardized score. Centering changes the origin but does not divide by a standard deviation.
- Using per-allele coefficients with standardized dosages. This mixes units. For standard deviation \(s_j\), use \(\beta_js_j\) to preserve the centered contribution.
- Assuming every reported score has trait units. A weighted sum with per-allele coefficients has trait units, whereas a score subsequently divided by its sample standard deviation is dimensionless.
These transformations preserve a specified linear predictor only when the genotype transformation, coefficient transformation, and any intercept adjustment are all applied consistently. They do not resolve uncertainty in effect estimates, make different populations have the same genotype distribution, or establish that the score has the same predictive performance in every population.
Check Your Understanding
Answer each question, then compare with the solutions below.
- A diploid variant has effect-allele dosage \(G=0.8\) and coefficient \(\beta=0.5\) trait units per allele. What is the raw contribution?
- If \(G'=2-G\), what coefficient corresponds to the opposite-allele dosage when the original coefficient is \(\beta\)? How do the raw contributions relate?
- For \(p=0.20\), find the frequency-based mean dosage and standard deviation under diploid Hardy–Weinberg equilibrium.
- Suppose \(G=1\), \(p=0.25\), and \(\beta=0.40\). Find the centered contribution and the standardized dosage. What coefficient preserves that contribution when using the standardized dosage?
- Why is a score formed by multiplying standardized dosages by the original per-allele coefficients generally not equal to the centered score?
Solutions. (1) The raw contribution is \(0.5(0.8)=0.40\) trait units. (2) The matching opposite-allele coefficient is \(-\beta\), and its raw contribution is \(-\beta(2-G)=\beta G-2\beta\); the difference is a constant. (3) The mean dosage is \(2p=0.40\), and the standard deviation is \(\sqrt{2(0.20)(0.80)}=\sqrt{0.32}=0.5657\) allele copies. (4) The centered contribution is \(0.40(1-0.50)=0.20\) trait units. The standardized dosage is \((1-0.50)/\sqrt{0.375}=0.8165\); the matching coefficient is \(0.40\sqrt{0.375}=0.2449\) trait units per standardized unit, whose product is \(0.2000\) trait units. (5) Standardization changes predictor units. Without multiplying each coefficient by the corresponding genotype standard deviation, the weighted contribution changes, so the result is not just the centered score on a different scale.