Tutorials › High-Dimensional Genomic Data Analysis › Phenotype Definition and Scale in PRS Evaluation

Polygenic Risk Scores · Tutorial 580 of 795

Phenotype Definition and Scale in PRS Evaluation

Learn to align a phenotype definition and analysis scale with the intended PRS evaluation, and to recognize when ascertainment changes the meaning of reported effects and metrics.

Advanced 10 min read

What You'll Learn

  • Define a binary phenotype and reference category so that PRS effect directions are interpretable.
  • Distinguish a change of measurement units from a change in the phenotype being predicted.
  • Identify when case-control ascertainment shifts a logistic intercept but preserves the odds-ratio slope.
  • Calculate how prevalence and case-control sampling affect accuracy and positive predictive value.
  • Compare the scale dependence of regression coefficients, \(R^2\), and prediction errors.
  • Diagnose phenotype and sampling choices that make evaluation results hard to transport.

Why Phenotype Definition Is Part of PRS Evaluation

A polygenic risk score (PRS) is evaluated against a phenotype, not against an abstract notion of genetic risk. The definition of that phenotype determines who counts as a case, which time point is relevant, and what a one-unit change in a quantitative outcome means. Two analyses can use the same score and participants yet report different effect estimates or prediction metrics because they define or code the outcome differently.

This matters when comparing results across studies and when deciding whether an estimate applies to a target population. A change from one unit to another may alter a coefficient’s numerical value without changing the underlying predictions. A change in diagnostic threshold or case ascertainment can instead change the target itself. Case-control sampling can also alter some observed metrics simply because the sampled case fraction differs from the fraction in the population where the PRS would be used.

Definition: A phenotype definition specifies the outcome being analyzed, including its operational criteria, coding, measurement method, and assessment time. A measurement scale specifies how the outcome’s values are represented, such as a binary indicator, a concentration in specified units, or a standardized quantitative value. These choices should be stated before an effect estimate or prediction metric is interpreted.

Binary Phenotypes: Coding and Effect Direction

For a binary phenotype, define \(Y=1\) as the outcome called a case and \(Y=0\) as the reference outcome called a control. For a score \(S\), a common association model is logistic regression:

$$ \operatorname{logit}\{P(Y=1\mid S)\}=\alpha+\beta S, \qquad \operatorname{logit}(p)=\log\left(\frac{p}{1-p}\right). $$

Here, \(\exp(\beta)\) is the odds ratio for a one-unit increase in \(S\), under the model. If \(S\) is standardized, one unit is one standard deviation of the score in the population used to standardize it. The coefficient is not a change in probability: the probability change depends on the starting probability as well as on \(\beta\). Interpretation also depends on which outcome was coded as 1 and how the score was scaled.

Worked Example: Reversing the Binary Outcome Coding

Suppose a hypothetical analysis defines \(Y=1\) as a diagnosed condition and uses a PRS \(S\) measured in standard-deviation units. The fitted model has \(\beta=0.4055\), so the estimated odds ratio per one-standard-deviation increase is \(\exp(0.4055)\approx 1.50\). Under this coding, each one-standard-deviation increase in the PRS is associated with 1.50 times the odds of being a case, conditional on the model.

Now define \(Y^*=1-Y\), so that controls rather than cases are coded as 1. Since \(P(Y^*=1\mid S)=1-P(Y=1\mid S)\), the log odds for \(Y^*=1\) are the negative of the original log odds: \[ \operatorname{logit}\{P(Y^*=1\mid S)\} =-\alpha-0.4055S. \] The new odds ratio per score unit is \(\exp(-0.4055)\approx 0.667\), the reciprocal of 1.50. The data and association have not changed; the reference category and the coefficient’s direction have changed. The coding must therefore accompany any reported PRS effect.

Changing a binary outcome’s labels from 0/1 to 1/2 only adds 1 to every outcome value; it does not change the underlying case definition. But reversing which group is treated as the event reverses the direction of a logistic coefficient. A more consequential change is to alter the case rule, such as using a stricter diagnostic threshold, a different age window, or self-report instead of a clinical record. That creates a different phenotype, not merely a different label.

Ascertainment and the Target Population

Many genomic evaluations use case-control samples in which investigators select participants according to case status. The case fraction in such a sample is set by study design and need not equal disease prevalence in the population where prediction is intended. This difference has important consequences for interpreting metrics and, under specific assumptions, a more limited consequence for logistic regression coefficients.

Suppose selection into the sample depends on \(Y\) but, within each outcome group, does not depend on \(S\). Write \(q_1=P(\text{sampled}\mid Y=1)\) and \(q_0=P(\text{sampled}\mid Y=0)\), with both probabilities positive. The sampled odds at a given score value are the population odds multiplied by \(q_1/q_0\). Thus:

$$ \frac{P(Y=1\mid S,\text{sampled})}{P(Y=0\mid S,\text{sampled})} = \frac{q_1}{q_0} \frac{P(Y=1\mid S)}{P(Y=0\mid S)}. $$

Taking logarithms shows that outcome-dependent sampling adds \(\log(q_1/q_0)\) to the logistic intercept while leaving the slope \(\beta\) unchanged, provided the logistic model is appropriate and sampling is independent of the score within outcome groups. The sampled intercept does not generally represent the population risk. If selection also depends on the score within cases or controls, or the model is misspecified, this simple slope-preservation result need not hold.

Worked Example: Why Case-Control Accuracy Is Not Population Accuracy

Consider a hypothetical population with case prevalence 0.10. A fixed prediction rule has sensitivity 0.80 and specificity 0.70 in this population. Sensitivity is the proportion of cases labelled positive; specificity is the proportion of controls labelled negative. For this illustration, assume these conditional rates also apply in a case-control sample selected within outcome groups.

In the population, the proportion correctly classified is the case fraction times sensitivity plus the control fraction times specificity: \[ (0.10)(0.80)+(0.90)(0.70)=0.08+0.63=0.71. \] Population accuracy is therefore 0.71. In a balanced case-control sample, the same rule has accuracy \[ (0.50)(0.80)+(0.50)(0.70)=0.40+0.35=0.75. \] The different accuracies result from the different case fractions, not from a change in the rule’s conditional rates.

A rule that labels every participant a control has population accuracy \(1-0.10=0.90\), but its accuracy in the balanced case-control sample is \(1-0.50=0.50\). Thus a seemingly high population accuracy can be achieved by ignoring all cases when prevalence is low. Accuracy from an artificially balanced sample should not be reported as population accuracy without accounting for the target prevalence.

The positive predictive value also changes. In the population, the fraction of all participants who are correctly labelled positive is \((0.10)(0.80)=0.08\), and the false-positive fraction is \((0.90)(1-0.70)=0.27\). Hence the positive predictive value is \(0.08/(0.08+0.27)\approx0.229\). In the balanced sample it is \(0.40/(0.40+0.15)\approx0.727\). The same sensitivity and specificity can therefore accompany very different probabilities that a positive label is a true case.

This example illustrates why evaluation should identify the population to which a metric refers. Some conditional quantities may be estimable in an outcome-sampled design under suitable assumptions, but quantities that average over cases and controls depend on the case fraction. Correcting a metric for prevalence requires a defensible target prevalence and an appropriate sampling model; it does not make an unclear phenotype definition adequate.

Quantitative Phenotypes: Units and Transformations

For a quantitative outcome, a basic model relates the measured phenotype \(Y\) to the score \(S\): \[ Y=\alpha+\beta S+\varepsilon. \] The slope \(\beta\) is the expected difference in the measured outcome per one-unit increase in \(S\), under the model. A score measured in standard-deviation units makes the PRS increment explicit; the outcome coefficient still has the units of \(Y\). Interpreting the slope requires the phenotype’s unit, measurement method, and assessment time.

A linear conversion of units changes the coefficient and prediction error in predictable ways. If \(Y^*=a+cY\), where \(c\ne0\), then the fitted intercept becomes \(a+c\alpha\), the slope becomes \(c\beta\), and residuals are multiplied by \(c\). Consequently, mean squared error is multiplied by \(c^2\). With an intercept in the regression, \(R^2\), the fraction of observed outcome variation explained by fitted values, is unchanged by this affine conversion. If \(c\) is negative, the coefficient’s sign reverses as well.

Worked Example: Converting a Quantitative Effect to Original Units

Suppose a hypothetical analysis standardizes a quantitative phenotype \(Y\) by subtracting its mean and dividing by its standard deviation. The original phenotype has standard deviation 12 units, and the fitted slope for a PRS measured per standard deviation is 0.30 standardized outcome units.

One standardized outcome unit corresponds to 12 original units, so the slope in original units is \[ 0.30\times 12=3.60. \] The interpretation is an estimated 3.60-unit difference in the phenotype per one-standard-deviation increase in the PRS, under the fitted model. If the original measurement unit were changed from units to tenths of a unit, the numerical slope would be multiplied by 10; the underlying fitted relationship expressed in physical terms would be the same.

Suppose the prediction error is also summarized by a mean squared error of 0.64 in the standardized outcome. Returning to the original scale multiplies squared error by \(12^2=144\), giving \(0.64\times144=92.16\) squared original units. The root mean squared error would be multiplied by 12. \(R^2\) would remain the same, provided the same observations and fitted values are used and the transformation is affine.

A nonlinear transformation is different. For example, taking the logarithm of a positive measurement changes distances between values, and a linear model on the transformed scale describes changes in log outcome rather than equal additive changes on the original scale. The ranking of predictions may be preserved by a strictly increasing transformation of predictions, but errors and \(R^2\) computed on different outcome scales are not directly comparable. A changed diagnostic threshold is more fundamental still: it changes which participants are cases and may change prevalence, effect estimates, and the prediction task.

Assumptions, Diagnostics, and Alternatives

The evaluation should begin with a written phenotype definition: case criteria and reference group for binary outcomes, or measurement procedure, unit, and assessment time for quantitative outcomes. Then specify the sampled population, the intended target population, the score scale, and the model. These details let readers distinguish a change of units or labels from a change in the scientific target.

  • Check outcome coding. Verify which value is the event in software and that the coefficient direction matches the stated case definition. A reversed label can make a correct estimate appear to have the opposite meaning.
  • Check ascertainment. Compare the sampled case fraction with the target prevalence. Record whether selection depended only on outcome status or could also depend on score, site, severity, or covariates.
  • Check measurement consistency. Look for differences in assay, instrument, diagnostic criteria, follow-up duration, missingness, and unit conversion. A nominally identical phenotype may not be measured identically across groups or cohorts.
  • Check metric scale and target. State whether errors are reported in original or transformed units and whether prevalence-dependent metrics describe the validation sample or a target population.

For binary outcomes, logistic regression directly models case odds and is often suitable for case-control association analysis under the sampling conditions described above. A linear probability model instead models the conditional mean of a 0/1 outcome as a linear function; its fitted values can fall outside 0 and 1, so it does not provide probabilities that are valid over all score values. For quantitative outcomes, a linear model gives effects in the measured units and can be compared with models on transformed scales, but the interpretation and error metric must then be reported on the corresponding scale.

No model or metric repairs a poorly defined phenotype. Misclassification, selective participation, and inconsistent measurement can distort an estimated relationship; the direction and magnitude of distortion depend on how those processes operate. Likewise, a result for one case threshold or assessment age should not automatically be treated as a result for another. State the limitation rather than interpreting a coefficient as a causal effect or as a universal measure of PRS performance.

Key takeaway: A PRS result is interpretable only relative to a specified phenotype, coding, measurement scale, and target population. Label reversals and unit conversions have predictable effects; changed case definitions and ascertainment can change the evaluation itself.

Check Your Understanding

Work through each question, then compare with the solutions below.

  1. A logistic model codes disease as 1 and estimates an odds ratio of 1.25 per score standard deviation. What happens to the odds ratio if controls are recoded as 1 and cases as 0?
  2. A hypothetical population has prevalence 0.20. A fixed rule has sensitivity 0.75 and specificity 0.80. Calculate its population accuracy. What would its accuracy be in a balanced case-control sample if the conditional rates are unchanged?
  3. A quantitative phenotype’s standard deviation is 8 units. The slope is 0.40 standardized outcome units per PRS standard deviation. Give the slope in original units.
  4. Why can \(R^2\) remain unchanged after converting a quantitative outcome from one unit to another, while mean squared error changes?

Solutions. (1) The odds ratio is reciprocated: \(1/1.25=0.80\), because reversing the event coding reverses the logistic coefficient. (2) Population accuracy is \((0.20)(0.75)+(0.80)(0.80)=0.15+0.64=0.79\). In a balanced sample it is \((0.50)(0.75)+(0.50)(0.80)=0.375+0.400=0.775\). (3) Multiply by the outcome standard deviation: \(0.40\times8=3.20\) original units per PRS standard deviation. (4) An affine unit conversion multiplies both deviations from the mean and prediction residuals by the same factor, so the ratio of explained to total sum of squares stays fixed. Squared residuals, and hence mean squared error, are multiplied by the square of that factor.

Clinical Biostats