Genetic heteroscedastic models for ordinal traits: application to sheep litter size

Background Classical genetic canalization models, which accommodate the mean and variance of a trait separately, provide a flexible approach to take heteroscedasticity for continuous traits into account. However, this model is not appropriate for discrete traits. The aim of this work was to propose heteroscedastic threshold models suitable for the genetic analysis of ordinal data. Methods In order to first fit the mean and variance of ordinal traits separately, we extended the classical threshold model (TM) for discrete data by introducing non-genetic and genetic factors of heterogeneity on the variance of its underlying variable, which leads to a homothetic threshold model HTM and its alternative parameterization HTM’ in which the thresholds of different individuals are linked by a homothetic-translation. Relaxing the constraint between the thresholds led us to propose an independent threshold model ITM that was more flexible than HTM’ but required the estimation of more parameters. TM, HTM and ITM models were applied to study 19,671 records on litter size in Romane sheep. Results Both HTM and ITM were able to disentangle the link between the mean and variance that holds in the classical homoscedastic threshold model. The results obtained for the litter size of Romane ewes showed that the data was best fitted with HTM compared to ITM and TM. The correlations between the observed and predicted variances were equal to 0.6 and 0.2 for HTM and TM, respectively. These analyses showed the existence of a genetic component for the heterogeneity of litter size in sheep that was taken into account in HTM. Conclusions HTM is the most suitable model to study the variability of litter size in sheep. It accommodates both the mean and variance separately while requiring the estimation of only a few parameters.


Background
Robustness can be viewed as the ability to maintain a stable phenotype regardless of the environmental conditions. In line with this approach, Scheiner and Lyman [1] proposed a model which considers that the expression of a trait is controlled by two sets of genes. One set controls the level of the performance and the other set controls the environmental variability of the trait. Various authors developed heteroscedastic models (i.e. canalization models) to jointly estimate the influence of various factors on both the mean and the variability of a trait [2][3][4][5].
These models were implemented with frequentist [6,7] or Bayesian methods [8,9], and applied to a large variety of continuous traits (birth weight of piglets, birth weight of rabbits, weight of chickens, etc.).
The methods described above mainly target continuous traits. Theoretically, these linear models do not analyze discrete traits adequately because of their non-normal distributions. However, some previous empirical studies showed that the performance of linear and non-linear models was similar in terms of goodness-of-fit and predictive ability [10,11] when analyzing the level of discrete livestock data. However, it is not known whether these properties are still true when dealing with the variability of discrete data.
The main objective of this research was to propose new models that take the heterogeneous individual variability of ordinal traits into account using derived threshold models. The models are described consecutively in the "Methods" section. "Heteroscedastic extensions of the threshold model" are presented in the first subsection, and a "Numerical application" of these models to litter size in Romane sheep is presented in the second subsection.

Heteroscedastic models for ordinal traits Homothetic threshold models for ordinal traits
A simple way of studying environmental sensitivity of an ordinal trait is to combine the threshold model (TM) [12] (appropriate for the study of ordinal traits) and the canalization model (appropriate for continuous traits) [13]. Thus, heteroscedasticity is considered under the liability threshold model and we call this new model the homothetic threshold model or HTM: where l is the normally distributed liability and t is a set of thresholds, which transform this liability into the observed discrete variable y in n categories, µ is the overall mean, u the vector of additive genetic effects that affect the mean of the liability, η is the overall mean and ν is the vector of additive genetic effects that affect the variability of the liability. Several functions f have been proposed in the literature (exponential, linear or square root functions [3]). The vectors of genetic values are assumed to be Gaussian: Under this parameterization, the vector of thresholds t where µ ′ is an overall set of n − 1 thresholds, u ′ i a subjectspecific deviation from this overall set and v ′ i a vector of size n − 1 that reflects the specific deviation of the subject threshold from this overall set with: where where ⊗ denotes the Kronecker product, A is the known additive genetic relationship matrix and G the genetic matrix σ 2 u ρσ u σ ν ρσ u σ ν σ 2 ν , where σ 2 u and σ 2 ν are the variances of the additive genetic effects that affect the mean and the variability of the liability, and ρ their coefficient of correlation. A fully equivalent parameterization of HTM can be written. This parameterization or HTM' model is reached by fixing the parameters of the liability and considering that the matrix of thresholds T ′ is affected by environmental and genetic effects i.e.: is not a translation as in TM but a homothetic translation, which means that the ratio HTM and HTM' are equivalent models with the same number of parameters (n + 1) being estimated. The relationship between t ′ i and t is: The estimations obtained with HTM' can be transformed into the estimations that would have been obtained with HTM. Overall, in the case of a linear function f , the approach produces: whereas for the other parameter we have: Finally, the genetic correlation ρ is: These formulas are detailed in "Appendix 1". The heritability of the trait on the liability scale is estimated by the ratio of the animal variance that acts on the mean to the total variance of the underlying variable i.e.: For instance in the case of a linear function f :

Extension of the homothetic threshold model into the independent threshold model
A straightforward extension of the above HTM' model can also be considered and consists in releasing the constraint of the homothetic-translation link between the thresholds of the individuals. The model therefore becomes an independent threshold model ITM, i.e.: where t i = µ + v i with µ being an overall set of n − 1 thresholds, and v i a vector of size n − 1, which reflects the specific deviation of the subject threshold from this overall set with: .
The total number of parameters in this model is (n + 2)(n − 1)/2. It should be noted that ITM cannot be parameterized like HTM using a fixed set of thresholds and a model on the liability l. In this model, fixing the thresholds to modify the parameterization would imply that the underlying variable would no longer be Gaussian.
Due to the lack of constraints between the thresholds (except for the obvious relationship −∞ < τ 1. < τ 2. < · · · < τ n−1. < ∞), ITM fits a much larger range of situations than a homothetic threshold model, which assumes a strong constraint either on the homothetic translation relationship between thresholds (HTM') or on the normality of the liability (HTM).
Interestingly, we found that another parameterization of ITM is a constrained multiple-trait model MTM (Appendix 2). Indeed, each observation of the ordinal trait can be considered as the result of n exclusive binary traits: The observed variable y can thus be transformed into n indicator functions which can be analyzed using a multivariate binary threshold model. Only n − 1 indicator functions need to be considered in this MTM since the value of one of the indicator functions is fixed conditionally to the others. Each sub-model k, k ∈ [1, n − 1] can be written as MTM k : According to this model, the probability that an individual might achieve the observation k or that the k th indicator function is equal to 1 is: and the n − 1 probabilities π k should satisfy the relation n−1 k=1 π k < 1. This constraint must be added to the multivariate binary threshold model.
The relationship between the thresholds of MTM and ITM is as follows: .
Under the latter models, one cannot really consider that the expression of the ordinal trait is controlled by two sets of genes. The combination of elementary genetic values for each individual results in the heteroscedasticity of the global trait. In this model, the heritability can be calculated for each class as: The different parameterizations of the models are summarized in Table 1. HTM' and ITM can be fitted using the ASReml software.

Numerical application Data
These models were applied to study litter size in Romane sheep. All data (litter size, environmental variation factors and pedigrees over ten generations) were extracted from the national database for genetic evaluation and research managed by the Institut de l'Elevage (French Livestock Institute) and the Centre de Traitement de l'Information Génétique (Genetic Information Processing Center, Jouy-en-Josas, France). Data consisted of records on litter size of 11,073 multiparous ewes from 23 flocks with at least four lambings from 2000 to 2013. The mean prolificacy (2.13) in this sample was high and consequently there was a high global variability in litter size.
The main features of this dataset are in Table 2. To avoid extreme case problems [14], litter sizes of more than four lambs were pooled into a single class for all analyses, which resulted in four classes of litter size i.e. [1, 2, 3, 4+]. The fixed effects included in the analysis were selected to be as similar as possible to those found in others studies [15,16]. This was done by comparing the likelihood-ratio of all the possible linear mixed models which included the following fixed effects: age of ewe (nine levels), time interval between lambing in months (seven levels), parity (seven levels), age of the ewe at first lambing in months (nine levels), season of lambing (two levels), as well as the random effects: flock and ewe effect. For this step of the analysis, the ewe effect was considered as random but the genetic relationships between individuals were ignored.

Estimation of parameters and comparison of methods
The three threshold models TM, HTM' and ITM described above were applied to this data. The classical TM, used as a basis for comparison, included the previously selected fixed effects and the ewe as both a random genetic effect (u * ) and a random permanent . The homothetic threshold model HTM' considered that fixed, genetic and permanent effects were common for all thresholds and threshold-specific random genetic effects with constrained genetic (co)variance to ensure Table 1 Main characteristics of the different models

Population
Homoscedastic Finally, an additional extension resulting in the independent threshold model ITM was fitted and it considered that the fixed and permanent effects were common for all thresholds and included a genetic effect that was specific to each threshold with no constrained genetic (co)vari- [17] was used to implement all the models.
Models were compared using the likelihood ratio test for nested models (TM vs. HTM' , LRT df = 2; TM vs. ITM, LRT df = 5) and the Bayesian Information Criterion (BIC) for non-nested models (BIC = ln(N − p) * c − 2lnL, HTM' vs. ITM, where L is the restricted maximum likelihood of the model, N the number of observations, p and c the number of fixed effects and covariance parameters) [18]. The models were also compared based on their ability to predict new records as follows: 75 % of records were used to estimate parameters that were used to predict the remaining 25 %. Five replicates of this design were sampled at random. To evaluate the predictive ability of the models, MSEP (mean square error of prediction) statistic was computed as: where y and ŷ correspond to the observed and predicted litter size, m is the number of data in the validation subset and M is the subset number.
For ewes with observations, we compared the raw means and variances of their litter sizes to the corresponding predicted values on the observable scale obtained with the different models. The raw mean and variance were calculated for each individual from the observed data. The predicted values were calculated as: and where π i,k was the probability that the litter size of a ewe i was k. These probabilities were calculated using π i,k = � τ i,k − � τ i,k−1 with as above τ 0 = −∞ and τ 4 = +∞ (τ i,k corresponds to τ * i,k ,τ ′ i,k or τ ′′ i,k depending on the model). To measure the ability of the models to break the link between ŷ i = t and σ 2 i = z, we used the following criterion: which ranges from 0 to 1. The criterion B was 0 if E(Var( z|t)) = 0, which means that a single value of the mean has a single value of the variance. The criterion B was 1 if E(Var( z|t)) = 1, which means that a single value of the mean has different variance values. Because the density associated to the variance Var( z|t) is unknown, data were ordered in ascending order of litter size and were discretized into s subgroups, and the variance of y in each subgroup σ 2 m was calculated in order to calculate: The subgroup number was defined in order to get a sufficient amount of data in each subgroup to obtain a good estimation of the subgroup variance. The intensity of the dispersion of each model was also assessed by calculating the correlation, either for the mean or the variance, between the observed values and the predicted values on the observable scale.

Comparison of models
The values of the criteria (LRT, BIC, MSE and MSEP) used to compare the adjustment quality of the models are in Tables 3 and 4.
The results showed that the homoscedastic model should be rejected and that the models that account for genetic heterogeneity of litter size distribution should be favored. Among the heteroscedastic models, BIC values were lower with HTM' than with ITM. MSE estimates of the mean were similar for the three models, whereas MSE estimates of the variance differed and were higher with TM than with HTM' (0.13 with TM vs. 0.10 with HTM'). The differences between MSEP values are small, which is explained by the fact that this parameter can estimate prediction error for the level of the trait only and not for its variability. To evaluate the ability of the models to predict variance, we calculated the B criteria on the validation subset by discretizing the whole data into 200 adjacent subgroups. The results are in Table 4. Based on the B criteria, HTM' and ITM were more efficient than TM (0.36 for HTM' , 0.37 for ITM vs. 0.005 for TM).

Homoscedastic threshold model used as reference (TM)
With TM, the genetic additive variance of the liability σ 2 u * was equal to 0.079 and the variance of the permanent environmental σ 2 p * effect was equal to 0.034, which resulted in a heritability h 2 of 0.07. The correlation between the predicted and observed means was very high (r = 0.80) ( Table 5), but it was low between the predicted and observed variances (r = 0.20). In spite of the curvilinearity between the predicted means and variances, the correlation between these variables was high (r = 0.99 ) and close to 1, and the B parameter was equal to 0.013 (Table 3), which reveals the one-to-one relationship between these variables when this homoscedastic threshold model was used as shown on the scatterplot of Fig. 1a.

Homothetic threshold model (HTM')
The genetic additive variances obtained with HTM' are in Table 6. By design, the correlation between the genetic values associated to thresholds (v) was equal to 1 in this model and the variance σ 2 ν ′ .1 was equal to 0. Moreover, and as expected due to the homothetic relationship, we observed an increase of σ 2 ν ′ .3 compared to σ 2 ν ′ .2 . The variances were equal to 0.04, 0.05 and 0.20 for σ 2 u ′ .1 , σ 2 ν ′ .2 , and σ 2 ν ′ .3 , respectively. The variance of the permanent environmental effect was equal to 0.015.
By transforming the results of the HTM' parameterization to those of HTM, we could estimate the variance of the genetic effects that affect the mean of the liability as well as the correlation between these effects. The values found for the mean of the liability, the scaling function and the correlation between effects were σ 2 u = 0.069 , σ 2 ν = 0.020 and ρ = −0.40, respectively. The variance of the permanent effect was σ 2 p = 0.015 whereas, by design, the mean of the residual variance was η 2 = 1. Since the model fitted for the environmental variance did not include fixed effects but only a general mean and a genetic effect, the heritability of the liability mean could be estimated independently of a given environment and was as follows: The correlation between observed and predicted means was high (r = 0.79) and not different from the value obtained with TM. This contrasts with the correlation between predicted and observed variances (r = 0.61). Although the prediction of the variances was still lower than that of the means, it was much higher than with TM. HTM' could therefore break the link between the predicted means and variances and the B parameter was equal to 0.51 (Table 3) even if the correlation between these variables was still high (r = 0.88). The scatterplot in Fig. 1b shows this variability of the predicted variance for a given predicted mean.
In this homothetic translation model, the gap 1−2 between the two first thresholds is an indirect measure of its variability for each individual. As an example, we    (Table 7). For these individuals, the values of the mean and variance estimated with HTM' are close to the observed values of the mean and variance. The ratio is constant for the two individuals, and the difference in percentage of grand-offspring born as quadruplets or more can be large (0 vs. 6 %).

Independent threshold model (ITM)
The genetic variances and correlations obtained with ITM are in Table 8. Genetic variances were small, but larger for the second and third thresholds than for the first threshold. Genetic correlations were moderate (ρ > 0.4) and it was highest between ν ′′ 2 and ν ′′ 3 . Using the transformation formulas described in "Appendix 2", it was possible to estimate the genetic variance associated with twin lambing (σ 2 ls=2 = 0.14), the corresponding heritability (h 2 ls=2 = 0.128) as well as the genetic correlation between the values for the first and the second classes of litter size (ρ = 0.44). The correlations between the predicted and observed means (r = 0.78) and between the predicted and observed variances (r = 0.59) were close to those obtained with HTM ( Table 8). The B parameter (B = 0.42, Table 3), the correlation between the predicted means and variances (r = 0.91) and the scatter plot (Fig. 1c) were also similar to those obtained with HTM' . The Spearman rank correlations between the thresholds of HTM' and ITM were high (Table 9).

Discussion
A genetic heteroscedastic model was previously proposed [6] to analyze categorical variables and break down   the link between mean and variance that holds with the classical homoscedastic threshold model. This model originated from the combination of two base models: the homoscedastic threshold model for categorical data [19] and the structural heteroscedastic model for continuous variables [2]. In this paper, we studied further extensions of this model by analyzing the relationship that exists between categories and in particular by releasing the main constraint.

Table 7 Observed values (prolificacy, variance) and estimated values with HTM' [thresholds, different gap between the first thresholds ( 1−2 ), ratio (R), prolificacy, variance, and percentage of the simple (% LS 1), double (% LS 2), triplet (% LS 3) and quadruplet (% LS 4)] for two individuals
In this paper, we propose two kinds of heteroscedastic models, both with different parameterizations. The first type (HTM/HTM') was fully derived from the canalization model proposed for continuous traits [2] with which it was easy to draw comparisons. The second type consisted in relaxing the relationship that exists between thresholds (translation in TM or homothetic translation in HTM) and led to a model that considers each threshold independently i.e. ITM. We demonstrated that this model was equivalent to a constrained multiple-trait model MTM on each class of the ordinal trait. This second type of model is much more flexible than HTM and its application in selection would be of particular interest because it allows for each class to be controlled through a multiple selection index [20] with specific environmental effects and economic weights for each class. Modeling each class of the trait to control its distribution or modeling only the most important class are trivial issues and have already been considered [21], however the correct multiple trait model must include a constraint on the sum of the probabilities of the n − 1 binary variables. In spite of their potential interest, the use of this kind of model (ITM or MTM) for genetic evaluation and selection would be limited since they require a larger number of parameters to be estimated than HTM or HTM' and would probably show convergence problems when the number of classes exceeds three. Furthermore, their biological interpretation is difficult; for instance we could not link the parameters of ITM or MTM to the biological model of Schneider and Lyman [22], which assumes the existence of different genes that control the mean and the variance of a trait.
We compared TM, HTM' and ITM through the analysis of data on litter size from both Romane and Rouge de l'Ouest sheep (the latter results are not shown). The low heritability of the liability to litter size obtained with an homoscedastic threshold model (i.e. TM) agreed with previous studies that used TM [23][24][25]. However, LRT, BIC, and MSE parameters showed that this homoscedastic model was less successful than both heteroscedastic models. Consequently, the distribution of sheep litter size shows heteroscedasticity of genetic origin as revealed by both the homothetic HTM' and independent threshold ITM models.
Taking the genetic heteroscedasticity in HTM' and the subsequent transformation of the parameters to those of HTM into account did not substantially change the heritability of the liability to litter size compared to TM. However, with HTM, the additive genetic variance of the variability of the trait was smaller than the corresponding variance of its mean. This is in line with results in the literature that showed that when additive genetic variances of the mean and the variability of a trait were jointly estimated, their values were smaller for the variability than for the mean [6,9,[26][27][28][29][30][31]. This seems to be a common rule regardless of the methodology used for such estimations, the trait or the species. In contrast, the genetic correlation between the mean of a trait and its variability is highly variable and covers the whole range of its variation interval. For instance, in a mouse population, genetic   [29]. In our study, we found a negative genetic correlation between the mean and the variability of sheep litter size with HTM' (ρ = −0.40). As highlighted by Yang et al. [32], this parameter might be affected by an artefact due to the scale of measurement or skewness of the data, although with the threshold model no such skewness affected this correlation. However, a study on another French sheep breed (Rouge de l'Ouest) for which the mean prolificacy (prolificacy = 1.80; LS3+ = 12.5 %) is lower than in Romane sheep (results not shown) reported a similar value i.e. −0.25.
Relaxing the homothetic constraint between the thresholds of HTM' did not improve the fit of the model or the predictive ability of the data as might be expected, but instead increased the BIC values due to the larger number of parameters to estimate in ITM. Moreover, although the constraint on the genetic correlation between thresholds was relaxed in ITM, the correlation between the second and third thresholds remained close to 1 and the correlation between the first and second thresholds was high; in addition, the Spearman rank correlations between the thresholds of HTM' and ITM were close to 1 (Table 9). This suggests that the true nature of the link between the thresholds is almost a homothetic translation in sheep and that the distributions of litter size classes are not independent but linked by a strong common law. It also means that the concept of sensitivity thresholds, which transform individual Gaussian variables that differ in mean and variance into the observed categories, might be relevant.
Nonetheless in our study, only genetic effects were considered as threshold-specific in ITM in order to compare the different models using LRT or BIC criteria. Of course, threshold-specific fixed effects and permanent effects could be included in ITM. In the same way, thresholdspecific fixed effects and permanent effects could be included in HTM' . Unfortunately, HTM with a thresholdspecific permanent effect did not converge and threshold-specific fixed factors with proportional effects cannot be implemented in ASReml. It may be possible to estimate fixed effects in the residual variance using an iterative process that tests the influence of each effect on the variance of the model. We did not test such algorithms on our data and it would probably be a slow and difficult process. Another solution would be to modify existing software for canalizing selection of a continuous trait in order to take into account the discrete characteristics of the data.
Using ITM, Martin et al. [33] showed that the polymorphism of a single gene affected not only the mean prolificacy in Lacaune sheep, but also modified its variability by changing the gap between the thresholds in a homothetic way. A superiority of the homothetic model (HTM'), as well as a similar genetic variability of the liability to litter size were found for Rouge de l'Ouest sheep (results not shown), thus covering the whole range of prolificacy in breeds for which canalization might be of interest. By design, the gap between the first two thresholds estimated for each individual in HTM' is inversely proportional to the individual residual variance of HTM (Fig. 2). This criterion has been used to compare the variability of about 50 French sheep breeds [34].

Conclusions
This study shows that we can model the variabilities (mean and variance) of a discrete trait using a suitable model, namely the HTM' model. Thus, the canalization of discrete traits is possible and the gap between the first two thresholds estimated for each individual in this model could be used to estimate the breeding value for the variability of litter size independently from that of the mean.
Given that t 1 = 0 and t 2 = 1 in HTM and t Considering that the ratio ν ′ 2 /µ ′ 2 − µ ′ 1 is small in comparison to 1, we applied Taylor's expansion to the previous equation: where L is the Logit distribution function.
Thus, the variance σ 2 u ′′ * 2 is: We see that, from the parameters of the ITM model, we can deduce the parameters of the MTM model.