GeneSuite
Documentation / Understand the methods

8. Binary, ordinal, count and survival traits

Advanced notes: contents · Abbreviations

1 The observation distribution is part of the model

Disease status, calving scores, numbers of treatments and time to removal are not continuous Gaussian measurements merely because they can be entered in a numeric column. Their support, exposure and observation process help determine an appropriate likelihood. The genetic relationship model can remain familiar while the conditional observation model changes.

A generalized linear mixed model specifies

\[ \eta=X\beta+Zu,\qquad u\sim N(0,K(\theta)),\qquad g(\mu_i)=\eta_i, \]

with conditionally independent responses from a declared distribution and \(\mu_i=E(y_i\mid u)\). Conditional independence is an assumption: repeated events, shared exposure and serial recording may require additional structure. The statistical construction and approximate inference for generalized linear mixed models (GLMMs) are developed by Breslow and Clayton (1993); Bayesian quantitative-genetic treatments are given by Sorensen and Gianola (2002).

Response Starting observation model Important distinction
Binary outcome Bernoulli with probit or logit link Status during a defined window differs from lifetime susceptibility
Ordered categories Threshold model on a latent liability Category spacing is not assumed equal
Event count Poisson or negative binomial, with exposure where needed Number of events differs from event rate
Time to event Survival model with censoring and a declared time origin An unobserved event time is not an observed failure time

These are starting points, not automatic choices. A Gaussian approximation may be useful for a particular target and design, but its scale and limitations must be assessed rather than inferred from successful numerical convergence.

2 Binary traits and latent liability

For a probit model, write

\[ \ell_i=x_i^\top\beta+z_i^\top u+\varepsilon_i, \qquad \varepsilon_i\sim N(0,1),\qquad y_i=\mathbf1(\ell_i>0). \]

Then \(\Pr(y_i=1\mid u)=\Phi(\eta_i)\). Fixing the liability residual variance sets the otherwise unidentified scale. A threshold location or equivalent intercept constraint is also required. The liability interpretation of threshold traits has a long quantitative-genetic foundation (Dempster and Lerner, 1950).

A logistic model instead uses \(\Pr(y_i=1\mid u)=\{1+\exp(-\eta_i)\}^{-1}\). Genetic variances on logit and probit scales are not directly interchangeable. Under a latent-logistic convention the residual variance is \(\pi^2/3\), whereas the probit construction above fixes it at one. Neither convention says that the observed binary residual variance is constant.

If additive and other independent liability components have variances \(\sigma_a^2\) and \(\sigma_c^2\) in a specified reference population, the probit liability heritability is

\[ h_\ell^2=\frac{\sigma_a^2}{\sigma_a^2+\sigma_c^2+1}. \]

Its observed-scale counterpart depends on prevalence, covariates and the population being averaged. Ascertainment and selective recording also matter. A liability-scale variance ratio should therefore not be reported as a universal heritability of the recorded zero/one outcome.

3 Ordered categories and count models

For ordered categories, let \(y_i=k\) when \(\tau_{k-1}<\ell_i\leq\tau_k\), with ordered thresholds and end points \(\tau_0=-\infty\), \(\tau_J=+\infty\). With unit normal liability residual,

\[ \Pr(y_i=k\mid u)= \Phi(\tau_k-\eta_i)-\Phi(\tau_{k-1}-\eta_i). \]

Thresholds, the intercept and residual scale need identifying constraints. Scoring categories as 1, 2 and 3 in a Gaussian model instead assumes a metric that the ordering itself does not supply. Category definitions and assessor consistency are also part of the measurement process.

For counts with exposure \(t_i>0\), a Poisson model can use

\[ y_i\mid u\sim\operatorname{Poisson}(t_i\lambda_i),\qquad \log\lambda_i=x_i^\top\beta+z_i^\top u. \]

The known \(\log t_i\) is an offset. A treatment count in a short observation period is not comparable to the same count over a year without accounting for exposure. The conditional Poisson variance equals its mean; unexplained heterogeneity may motivate a negative-binomial distribution or additional effects. Extra zeros alone do not establish a separate zero-generating class. Exposure errors, unrecorded events and clustering are alternative explanations.

4 Survival, censoring and frailty

A proportional-hazards mixed model may specify

\[ \lambda_i(t\mid u)=\lambda_0(t) \exp\{x_i(t)^\top\beta+z_i(t)^\top u\}. \]

The shared random effects are often called frailties on this scale. For an observed time \(T_i\) and event indicator \(\delta_i\), with independent censoring conditional on the model, the likelihood contribution is

\[ \lambda_i(T_i\mid u)^{\delta_i} \exp\left\{-\int_0^{T_i}\lambda_i(s\mid u)\,ds\right\}. \]

Left truncation, interval censoring, competing events and recurrent events require their corresponding likelihoods. Ducrocq and Casella (1996) develop mixed survival models for genetic analysis; their likelihood is different from assigning a Gaussian residual to recorded lifespan.

An additive effect on log hazard is not an additive effect on mean lifetime. Its sign also depends on whether the event represents death, disease, recovery or a desirable transition. For productive life, removal can reflect management, fertility and production decisions as well as biological survival. Treating all culling as non-informative censoring is a substantive assumption. See missing data and selection.

5 Prediction and estimation after the likelihood changes

For conditionally independent observations, the marginal likelihood has the form

\[ p(y\mid\beta,\theta,\phi)= \int \left\{\prod_i p(y_i\mid\eta_i,\phi)\right\} \varphi(u;0,K(\theta))\,du, \]

where \(\phi\) denotes any additional observation parameters. The integral is generally not the Gaussian restricted maximum likelihood (REML) objective from variance-component inference. Laplace approximations, quadrature, working-response methods and posterior sampling make different approximations or target different inferential objects. Their performance must be assessed for rare events, small groups and the covariance structures of interest; an early approximation is not a universal reference for every modern implementation (Breslow and Clayton, 1993; Sorensen and Gianola, 2002).

The conditional mode of \(u\), its posterior mean and a predicted response probability are different outputs. In particular,

\[ E\{g^{-1}(\eta_i)\mid y\} \ne g^{-1}\{E(\eta_i\mid y)\} \]

in general. Response-scale prediction requires integration over the uncertainty appropriate to the target, including future environmental effects when relevant. A genetic contrast on the link scale can remain meaningful, but its translation to risk or rate depends on the covariate and exposure context.

Likewise, an inverse Hessian at a mode is a local curvature approximation. It is not automatically the exact Gaussian prediction-error variance (PEV) formula from prediction and uncertainty, nor a calibrated interval after variance estimation and selection.

5.1 Learned measurements and recorded events are different observations

A disease label, its observation window and a classifier’s estimated disease probability describe different quantities. Treating a learned probability as an observed binary diagnosis discards its measurement interpretation. A staged analysis needs an appropriate uncertainty model; a joint analysis might link a latent health state to both diagnostic observations and sensor features. Its identifiability depends on calibration and reference information, not only on the flexibility of the classifier.

Likewise, automated event counts need exposure and event-detection definitions. Missed detections can differ from biological absence. Observation models must separate these processes where the data support that distinction, with likelihood and uncertainty checks appropriate to the chosen construction. See phenomics for measurement and recording design.

6 Qualification and practical interpretation

Verify likelihood contributions and derivatives on small independent examples, including limiting probabilities, zero exposure handling, ordered thresholds and censoring patterns. Working-equation residuals certify an inner numerical problem; outer likelihood, gradient or posterior diagnostics are still needed. For sampling methods, assess mixing and effective information as well as elapsed time. See the algorithmic reference and qualification framework.

Simulation should assess parameter recovery and interval coverage under the intended prevalence, exposure and recording design. Deployment validation should assess probability calibration and a suitable proper prediction score as well as discrimination. For survival outcomes, evaluation must account for censoring and the time horizon. Genetic accuracy is a different target from classification accuracy of individual observed outcomes.

These observation models connect directly to longitudinal traits and large-scale phenomics. More frequent recording can improve information, but it also makes event definitions, exposure and the observation process more consequential.

NoteImplementation in gsuite

The standalone mixed-model specification and development mixed-model R coverage linked from these notes provide Gaussian model routes. This review does not establish a general threshold, count or survival animal-model workflow in those interfaces. The separate association package includes binary-trait association analysis, which is a different task from the general genetic evaluation models derived here. This chapter supplies the broader theory of observation models rather than a claim that every likelihood is already exposed.

Next: genetic bases and crossbreeding.

7 References

Breslow, N. E., and Clayton, D. G. (1993). Approximate Inference in Generalized Linear Mixed Models. Journal of the American Statistical Association, 88(421), 9–25. https://doi.org/10.1080/01621459.1993.10594284.
Dempster, E. R., and Lerner, I. M. (1950). Heritability of threshold characters. Genetics, 35(2), 212–236. https://doi.org/10.1093/genetics/35.2.212.
Ducrocq, V., and Casella, G. (1996). A Bayesian analysis of mixed survival models. Genetics Selection Evolution, 28(6). https://doi.org/10.1186/1297-9686-28-6-505.
Sorensen, D., and Gianola, D. (2002). Likelihood, Bayesian, and MCMC Methods in Quantitative Genetics. Springer New York. https://doi.org/10.1007/b98952.