# Estimation of variance components and prediction of breeding values based on group records from varying group sizes

Guosheng Su, Per Madsen, Bjarne Nielsen, Tage Ostersen, Mahmoud Shirali, Just Jensen, Ole F. Christensen

► To cite this version:

Guosheng Su, Per Madsen, Bjarne Nielsen, Tage Ostersen, Mahmoud Shirali, et al.. Estimation of variance components and prediction of breeding values based on group records from varying group sizes. Genetics Selection Evolution, 2018, 50 (1), pp.42. 10.1186/s12711-018-0413-y. hal-02405255

HAL Id: hal-02405255

https://hal.science/hal-02405255

Submitted on 11 Dec 2019

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_1.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
<figure><img src="image_2.png" /></figure>

# Estimation of variance components and prediction of breeding values based on group records from varying group sizes

Guosheng Su¹*, Per Madsen¹, Bjarne Nielsen², Tage Ostersen², Mahmoud Shirali¹, Just Jensen¹ and Ole F. Christensen¹

## Abstract

**Background:** Records on groups of individuals rather than on single individuals could be valuable for predicting breeding values (BV) of the traits that are difficult or costly to measure individually, such as feed intake in pigs or beef cattle. Here, we present a model, which handles group records from varying group sizes and involves multiple fixed and random effects, for estimating variance components and predicting BV. Moreover, using simulation, we investigated the efficiency of group records for predicting BV in situations with various group sizes and structures, and factors that affect the trait.

**Results:** The results show that the presented model for group records worked well and that variances estimated from group records with varying group sizes were consistent with those estimated from individual records, but with larger standard errors. Ignoring litter and pen effects had very little or no influence on the accuracy of estimated BV (EBV) obtained from group records. However, ignoring litter effects resulted in biased estimates of additive genetic variance and EBV. The presence of litter and pen effects on phenotypes decreased the accuracy of EBV although the prediction model fitted both effects. Having more littermates in the same pen led to a higher accuracy of EBV. The decay of EBV accuracy with increasing group size was more marked for scenarios with litter and pen effects than without. When litters of six individuals were divided into two pens, accuracies of EBV obtained from group records with a size up to 12 (average 9.6) and up to 24 (average 19.2) were 66.6 and 57.6% of those estimated from individual records in the scenario with litter and pen effects on phenotypes. These percentages reached 77.0 and 68.4% in the scenario without litter and pen effects on phenotypes.

**Conclusions:** Our results indicate that the model works appropriately for the analysis of group records from varying group sizes. Using group records for genetic evaluation of traits such as feed intake in pig is feasible and the efficiency of the resulting estimates depends on the size and structure of the groups and on the magnitude of the variances for litter and pen effects.

## Background

The amount of available data is a key factor that affects accuracy of selection in a breeding program. For some traits, individual records are difficult or expensive to measure, making it difficult to obtain a sufficient amount of data. An example is feed intake, which is one of the

most important traits in livestock production, since feed represents 60 to 70% of the total cost in modern commercial livestock production systems [1–3]. Feed intake at the individual level is usually measured by electronic feeders that can recognize each individual in the pen/barn (pig/cattle), or by isolating an animal in a cage (poultry). Because individual recording of feed intake is expensive, individual feed intake is usually only measured for a small proportion of selection candidates. For most selection candidates, their BV are predicted using information from their relatives that have individual records

<footnote>*Correspondence: guosheng.su@mbg.au.dk
¹Center for Quantitative Genetics and Genomics, Department of Molecular Biology and Genetics, Aarhus University, 8830 Tjele, Denmark
Full list of author information is available at the end of the article</footnote>
of feed intake and information on correlated traits such as growth or production traits that are usually recorded individually. The lack of phenotypic data on feed intake is a barrier in the genetic progress of feed efficiency. Therefore, alternatives to measuring individual feed intake are required in order to improve the accuracy of genetic evaluation of feed efficiency.

One alternative is to use data of feed intake at the group level. In pig farms, a group of pigs (e.g., 12–15 pigs) are usually kept in a pen during a particular growth period (e.g., from 30 to 100 kg). Although it is costly to measure feed intake individually due to the expensive equipment required, total feed intake at the pen level is relatively easy to measure by manually or automatically weighing the feed that is provided in the feeder during the trial and the remaining feed at the end of the trial. Many studies have reported the estimation of variance components [4–6] and prediction of BV using group records [5–8]. However, in all these studies only additive genetic and residual effects were considered as random effects in the model, and they analyzed data of equal group sizes or set a constant group size to model the residual variance when analyzing data of varying group sizes [8]. Thus, it is necessary to extend these approaches to handle multiple fixed and random effects, such as litter and pen effects on feed intake in pigs, and investigate the efficiency of using group records for predicting BV in different scenarios.

The objectives of this study were to (1) model group records from varying group sizes, considering both additive genetic and non-genetic random effects (litter and pen effects); (2) interpret variance components at the group level; (3) assess the variances estimated from group records; and (4) compare prediction accuracy based on group and individual records in different scenarios.

## Methods

In this section, first we describe the model used to fit group records with unequal group sizes; second, we illustrate variances at the group level and variance components estimated from group records; third, we present the simulation of data for various scenarios by mimicking feed intake in pigs; and finally, we describe the analysis of data to compare the efficiency of using group versus individual records for predicting BV in different scenarios and with different models.

### Model and variance components for group records

Assume that phenotypes for a trait (vector of individual records $\mathbf{y}$), such as feed intake in pigs, are affected by additive genetic effects (a), litter effects (l), pen effects (c), and some fixed effects (b), along with residual effects (e), resulting in the following linear mixed model for individual records:

$$ \mathbf{y} = \mathbf{X}\mathbf{b} + \mathbf{Z}_{\mathrm{l}}\mathbf{l} + \mathbf{Z}_{\mathrm{c}}\mathbf{c} + \mathbf{Z}_{\mathrm{a}}\mathbf{a} + \mathbf{e}, \quad (1) $$

where $\mathbf{X}$, $\mathbf{Z}_{\mathrm{l}}$, $\mathbf{Z}_{\mathrm{c}}$, and $\mathbf{Z}_{\mathrm{a}}$ are incidence matrices linking b, l, c and a to y. Litter effects reflect the continuous effects due to common environment before weaning, while pen effects represent common environment effects during the grow-finish period. It is assumed that the random effects have the following distributions:

$$ \mathbf{l} \sim N(\mathbf{0}, \mathbf{I}\sigma_{\mathrm{l}}^2), \quad \mathbf{c} \sim N(\mathbf{0}, \mathbf{I}\sigma_{\mathrm{c}}^2), \quad \mathbf{a} \sim N(\mathbf{0}, \mathbf{A}\sigma_{\mathrm{a}}^2), \\ \text{and} \quad \mathbf{e} \sim N(\mathbf{0}, \mathbf{I}\sigma_{\mathrm{e}}^2), $$

where $\mathbf{l}$ is an identity matrix, $\mathbf{A}$ is the additive genetic relationship matrix, $\sigma_{\mathrm{l}}^2$, $\sigma_{\mathrm{c}}^2$, and $\sigma_{\mathrm{a}}^2$ are the variance of litter effects (hereafter referred to as litter variance), the variance of pen effects (hereafter referred to as pen variance), and additive genetic variance, respectively. The expectation and variance of $\mathbf{y}$ are:

$$ E(\mathbf{y}) = \mathbf{X}\mathbf{b}, $$

$$ \text{and } V(\mathbf{y}) = \mathbf{Z}_{\mathrm{l}}\mathbf{Z}_{\mathrm{l}}'\sigma_{\mathrm{l}}^2 + \mathbf{Z}_{\mathrm{c}}\mathbf{Z}_{\mathrm{c}}'\sigma_{\mathrm{c}}^2 + \mathbf{Z}_{\mathrm{a}}\mathbf{A}\mathbf{Z}_{\mathrm{a}}'\sigma_{\mathrm{a}}^2 + \mathbf{I}\sigma_{\mathrm{e}}^2. $$

For a trait measured at the group level, for example, aggregated feed intake in a pen, the model for group records (here a pen is considered as a group) corresponding to the model for individual records can be written as:

$$ \mathbf{T}\mathbf{y} = \mathbf{T}(\mathbf{X}\mathbf{b} + \mathbf{Z}_{\mathrm{l}}\mathbf{l} + \mathbf{Z}_{\mathrm{c}}\mathbf{c} + \mathbf{Z}_{\mathrm{a}}\mathbf{a} + \mathbf{e}), \quad (2) $$

where $\mathbf{T}$ is an indicator matrix that links individual records to groups with number of rows equal to the number of groups and number of columns equal to the total number of animals with records. Element ($\mathbf{T}_{ij}$) of $\mathbf{T}$ is 1 if the jth animal belongs to the ith group, and otherwise 0. Matrix $\mathbf{T}$ also sums variables for each level of particular factor within a group.

The model for group records can be written in the typical form of a linear mixed model:

$$ \mathbf{y}^* = \mathbf{X}^*\mathbf{b} + \mathbf{Z}_{\mathrm{l}}^*\mathbf{l} + \mathbf{Z}_{\mathrm{c}}^*\mathbf{c} + \mathbf{Z}_{\mathrm{a}}^*\mathbf{a} + \mathbf{e}^*, \quad (3) $$

$$ \text{where } \mathbf{y}^* = \mathbf{T}\mathbf{y}, \quad \mathbf{X}^* = \mathbf{T}\mathbf{X}, \quad \mathbf{Z}_{\mathrm{l}}^* = \mathbf{T}\mathbf{Z}_{\mathrm{l}}, \quad \mathbf{Z}_{\mathrm{c}}^* = \mathbf{T}\mathbf{Z}_{\mathrm{c}}, \\ \mathbf{Z}_{\mathrm{a}}^* = \mathbf{T}\mathbf{Z}_{\mathrm{a}}, \text{ and } \mathbf{e}^* = \mathbf{T}\mathbf{e}. $$

Thus, $\mathbf{y}^*$ is the vector of group records with element $y_i^* = \mathbf{t}_i\mathbf{y} = \sum_{j=1}^{n_{gi}} y_{ij}$, where $\mathbf{t}_i$ is the ith row of matrix $\mathbf{T}$, with elements indicating the animals in the ith group, and $n_{gi}$ is the number of animals in the ith group. For matrices $\mathbf{X}^*$, $\mathbf{Z}_{\mathrm{l}}^*$, $\mathbf{Z}_{\mathrm{c}}^*$ and $\mathbf{Z}_{\mathrm{a}}^*$, the number of rows is equal to the number of groups and the number of columns is equal to that of matrices $\mathbf{X}$, $\mathbf{Z}_{\mathrm{l}}$, $\mathbf{Z}_{\mathrm{c}}$, and $\mathbf{Z}_{\mathrm{a}}$, respectively. Element $\mathbf{X}_{(ij)}^*$ is either the number of animals in the ith group at the jth level of the fixed effect, or the sum of elements in the ith group for a regression covariable. Element $\mathbf{Z}_{\mathrm{l}}_{(ij)}^*$ is the number of animals of the jth litter
included in the ith group, and the number of non-zero elements in the ith row of Zᵢ is equal to the number of litters involved in the ith group. Element Zᵢ is the number of animals of the jth pen included in the ith group. When considering a pen as a group, Zᵢ is a diagonal matrix with diagonal element Zᵢ equal to group size. Element Zᵢ is 1 or 0 to indicate if the jth animal is in the ith group. Thus, the number of 1s in the ith row of Zᵢ is equal to the number of animals in the ith group. The expectation and variance of y* are:

$$ 
\begin{aligned}
E(\mathbf{y}^*) &= \mathbf{X}^*\mathbf{b} \quad \text{and} \\
V(\mathbf{y}^*) &= \mathbf{Z}_1^*\mathbf{Z}_1^{*\prime}\sigma_1^2 + \mathbf{Z}_c^*\mathbf{Z}_c^{*\prime}\sigma_c^2 + \mathbf{Z}_a^*\mathbf{A}\mathbf{Z}_a^{*\prime}\sigma_a^2 + \mathbf{R}\sigma_e^2,
\end{aligned}
$$

where R is a diagonal matrix with R_{(ii)} = n_{gi}.

Let zᵢ, z_c, and z_a denote the rows of Zᵢ, Z_c and Z_a, respectively. For a particular group (here a pen = a group) with a size of n_g, the variance of the cumulative pen effect for the group is:

$$ \sigma_{\mathbf{c}^*}^2 = \mathbf{z}_{\mathbf{c}^*}^* \mathbf{z}_{\mathbf{c}^*}^{*\prime} \sigma_{\mathbf{c}^*}^2 = n_g^2 \sigma_{\mathbf{c}^*}^2. \quad (4) $$

The definition of the pen variance at the group level (σ_c^*) is based on the concept that the pen effect is the same for all animals j and j' within the same pen, i.e. Cov(c_j, c_{j'}) = σ_c^2. Thus,

$$ 
\begin{aligned}
\sigma_{\mathbf{c}^*}^2 &= \mathrm{Var}\left(\sum_{j=1}^{n_g} c_j\right) \\
&= n_g \sigma_{\mathbf{c}^*}^2 + n_g (n_g - 1) \mathrm{Cov}(c_j, c_{j'}) = n_g^2 \sigma_{\mathbf{c}^*}^2.
\end{aligned}
$$

In the next section, we show that although one pen (i.e., one group) has only one group record, it is possible and necessary to include pen effect in the model for group records where the number of animals per pen varies.

The variance of the cumulative litter effect in a particular group is:

$$ \sigma_{\mathbf{I}^*}^2 = \mathbf{z}_{\mathbf{I}^*}^* \mathbf{z}_{\mathbf{I}^*}^{*\prime} \sigma_{\mathbf{I}^*}^2 = \sum_{k=1}^{N_L} n_{lk}^2 \sigma_{\mathbf{I}^*}^2, \quad (5) $$

where N_L is the number of litters within a group and n_lk is the number of littermates from litter k in the group. The definition of litter variance at the group level (σ_I^2) is based on the concept that if individuals j and j' are littermates, Cov(lj, lj') = σ_I^2, or else Cov(lj, lj') = 0. Let m and m' denote individuals within litter k,

$$ 
\begin{aligned}
\sigma_{\mathbf{I}^*}^2 &= \mathrm{Var}\left(\sum_{j=1}^{n_g} l_j\right) = \sum_{k=1}^{N_L} \mathrm{Var}\left(\sum_{m=1}^{n_{lk}} l_{km}\right) \\
&= \sum_{k=1}^{N_L} \left(n_{lk} \sigma_{\mathbf{I}^*}^2 + n_{lk}(n_{lk} - 1)\mathrm{Cov}(l_{km}, l_{km'})\right) = \sum_{k=1}^{N_L} n_{lk}^2 \sigma_{\mathbf{I}^*}^2.
\end{aligned}
$$

The variance of the cumulative additive genetic effect for a particular group is:

$$ \sigma_{\mathbf{a}^*}^2 = \mathbf{z}_{\mathbf{a}^*}^* \mathbf{A} \mathbf{z}_{\mathbf{a}^*}^{*\prime} \sigma_{\mathbf{a}^*}^2 = \sum_{j=1}^{n_g} A_{jj'}^{*\prime} \sigma_{\mathbf{a}^*}^2 + \sum_{j=1}^{n_g} \sum_{j'=1(j' \neq j)}^{n_g} A_{jj'}^{*\prime} \sigma_{\mathbf{a}^*}^2, \quad (6) $$

where A^* is a sub-A matrix for the animals in that particular group. The definition of the additive genetic variance at the group level (σ_a^2) is based on the concept that the additive genetic covariance between individual j and j' is Cov(a_j, a_{j'}) = A_{jj'}^* σ_a^2. Thus,

$$ 
\begin{aligned}
\sigma_{\mathbf{a}^*}^2 &= \mathrm{Var}\left(\sum_{j=1}^{n_g} a_j\right) \\
&= \sum_{j=1}^{n_g} \mathrm{Var}(a_j) + \sum_{j=1}^{n_g} \sum_{j'=1(j' \neq j)}^{n_g} \mathrm{Cov}(a_j, a_{j'}) \\
&= \sum_{j=1}^{n_g} A_{jj'}^* \sigma_{\mathbf{a}^*}^2 + \sum_{j=1}^{n_g} \sum_{j'=1(j' \neq j)}^{n_g} A_{jj'}^* \sigma_{\mathbf{a}^*}^2.
\end{aligned}
$$

In other words, σ_a^2 is equal to σ_a^2 times the sum of the elements in the sub-A matrix for the animals in that particular group.

Assuming that residual effects between individuals i and j' are independent, i.e., Cov(e_j, e_{j'}) = 0, where j and j' are not the same animal, the variance of the cumulative residual effect in a group is:

$$ \sigma_{\mathbf{e}^*}^2 = \mathrm{Var}\left(\sum_{j=1}^{n_g} e_j\right) = n_g \sigma_{\mathbf{e}^*}^2. \quad (7) $$

Therefore, as long as the model for group records is consistent with the model for individual records and the model is appropriate, estimates of variance components are consistent from both types of records. Comparison of Eq. (4) with Eq. (7) shows that the pen variance at the group level has a quadratic relationship with the number of pen mates, while residual variance at the group level
has a linear relationship with the number of pen mates. This indicates that, in theory, a model for group records should include pen effects because it is difficult to handle the distribution of the residuals when they include pen effects and group sizes vary. It should be noted that $Z_c^*Z_c^{*'}$ is a diagonal matrix with diagonal elements equal to $n_g^2$ when considering pen as the group. If group (pen) size is constant, $Z_c^*Z_c^{*'} = n_g^2I$ and $R = n_gI$, thus $Z_c^*Z_c^{*'} = n_gR$. In such a case, the covariance matrix for pen effects is proportional to the covariance matrix of residuals, and thus, pen and residual effects cannot be separated. Similarly, if each pen contains one whole litter, $Z_1^*Z_1^{*'} = Z_c^*Z_c^{*'}$, and thus, litter effect and pen effects are not identifiable.

An example to demonstrate the model for group records and variance components is shown in the “Appendix”.

## Simulation of data

Estimation of variance components and prediction of BV using group records were evaluated using simulated data of individual feed intake in a pig population. To simplify the simulation procedure, the simulated populations were under random selection and mating, sows had first parity only, and generations did not overlap. Each generation had 30 sires, each sire was mated to 20 dams, and each litter had six individuals available for testing. In total, eight generations of data were simulated. Only the last five generations of phenotypic data were used in the analysis but pedigree was traced back to the base population.

Two sets of phenotypic values ($y_{alp}$ and $y_a$) were simulated. In phenotype 1, $y_{alp}$=litter effect+pen effect+additive genetic effect+residual, and the variance components were $\sigma_a^2=120$, $\sigma_l^2=40$, $\sigma_c^2=40$, and $\sigma_e^2=200$. In phenotype 2, $y_a$=additive genetic effect+residual, and the variance components were $\sigma_a^2=120$, and $\sigma_e^2=280$. It was assumed that $I \sim N(0, I\sigma_l^2)$, $c \sim N(0, I\sigma_c^2)$, $a \sim N(0, A\sigma_a^2)$, and $e \sim N(0, I\sigma_e^2)$.

A group record was defined as the sum of individual records within a pen. To investigate the effect of different group structures on estimates of variance components and BV, three group structures with an initial pen/group size of 12 were generated, i.e., (1) $L_{1 \times 6}$: all individuals of a litter were assigned to the same pen and thus, a pen included two litters; (2) $L_{2 \times 3}$: a litter was randomly divided into two sub-litters of size 3, which were randomly allocated to pens, and thus a pen included pigs from four litters; and (3) $L_{\text{ran}}$: individuals of a litter were randomly distributed to pens. Scenario $L_{2 \times 3}$ was taken as the base scenario for detailed analysis. To investigate the effect of group size on genetic evaluation, different group sizes were simulated, ranging from 3 to 30. In this setting, animals were allocated to pens in two ways, i.e. (1)

sub-litters (each with three individuals) were randomly allocated to pens, and (2) individuals randomly allocated to pens. The construction of groups was performed within generations.

In practice, group sizes in a dataset are not constant due to differences in pen size, rearing density between farms, etc. To create various group sizes within a scenario, 20% of the individuals were randomly deleted (but all breeding animals were kept). Thus, group sizes within a scenario followed a binomial distribution with a mean group size equal to 80% of the pre-designed size.

For each scenario, 100 replicates were generated and analyzed, and the mean and standard deviation of these 100 replicates are presented. The standard deviation reflects standard error for an estimate of a parameter.

## Statistical models to analyze the simulated data

For both datasets with or without simulated litter ($l$) and pen ($c$) effects, variance components were estimated and breeding values were predicted using the following four models:

$$y^* = 1\mu + Z_l^*I + Z_c^*c + Z_a^*a + e^*, \quad (M_{ALP})$$

$$y^* = 1\mu + Z_l^*I + Z_a^*a + e_c^*, \quad (M_{AL})$$

$$y^* = 1\mu + Z_c^*c + Z_a^*a + e_l^*, \quad (M_{AP})$$

$$y^* = 1\mu + Z_a^*a + e_{cl}^*, \quad (M_A)$$

The datasets of individual records were also analyzed using the models for individual records ($M_{ALP_i}$, $M_{AL_{i,j}}$, $M_{AP_i}$ and $M_{A_{i,j}}$ corresponding to $M_{ALP}$, $M_{AL}$, $M_{AP}$ and $M_A$). In the analysis of the effect of different group sizes and structures on prediction of BV, $M_{ALP}$ with true (simulated) variances was used to predict BV from phenotypes with litter and pen effects, and $M_A$ with true variances was used to predict BV from phenotypes without litter and pen effects.

Variance components were estimated by the average information (AI) REML procedure [9] and BV were predicted with the BLUP method [10]. All analyses were performed with the DMU package [11]. The efficiency of using group versus individual records for predicting BV was assessed by accuracy and bias of BV prediction. Accuracy was calculated as the correlation between predicted and true BV for all animals with phenotype data. Bias was evaluated by regression of true on predicted BV.

## Results

### Estimates of variance components from group models

Variance components estimated from group or individual records of the basic scenario ($L_{2 \times 3}$) using different models are in Table 1. Based on individual records for which phenotypes included litter and pen effects, as
<table><caption>Table 1 Estimates of variance components [mean (SD) over 100 replicates] from group or individual records when using different models for the base scenario (L<sub>2x3</sub>)</caption><thead><tr><th>Litter and pen effect</th><th>Record</th><th>Model</th><th>Additive genetic variance (σ<sub>a</sub><sup>2</sup>)</th><th>Litter variance (σ<sub>l</sub><sup>2</sup>)</th><th>Pen variance (σ<sub>p</sub><sup>2</sup>)</th><th>Residual variance (σ<sub>e</sub><sup>2</sup>)</th></tr></thead><tbody><tr><td rowspan="6">Yes</td><td rowspan="5">Group</td><td>Simulated</td><td>120</td><td>40</td><td>40</td><td>200</td></tr><tr><td>M<sub>A</sub></td><td>133.1 (28.8)</td><td></td><td></td><td>661.9 (35.7)</td></tr><tr><td>M<sub>AL</sub></td><td>118.8 (26.5)</td><td>48.7 (22.6)</td><td></td><td>558.0 (58.1)</td></tr><tr><td>M<sub>AP</sub></td><td>129.7 (27.5)</td><td></td><td>46.2 (16.9)</td><td>226.1 (155.6)</td></tr><tr><td>M<sub>ALP</sub></td><td>118.5 (25.7)</td><td>38.8 (22.4)</td><td>40.4 (17.0)</td><td>209.3 (150.5)</td></tr><tr><td rowspan="4">Individual</td><td>M<sub>A</sub></td><td>175.3 (10.1)</td><td></td><td></td><td>236.9 (6.2)</td></tr><tr><td>M<sub>AL</sub></td><td>119.5 (11.1)</td><td>55.9 (3.9)</td><td></td><td>223.5 (6.8)</td></tr><tr><td>M<sub>AP</sub></td><td>158.1 (9.3)</td><td></td><td>46.1 (2.6)</td><td>204.1 (5.8)</td></tr><tr><td>M<sub>ALP</sub></td><td>119.4 (10.1)</td><td>39.9 (3.3)</td><td>40.0 (2.4)</td><td>199.6 (6.3)</td></tr><tr><td rowspan="6">No</td><td rowspan="5">Group</td><td>Simulated</td><td>120</td><td>0</td><td>0</td><td>280</td></tr><tr><td>M<sub>A</sub></td><td>118.0 (17.6)</td><td></td><td></td><td>281.9 (20.3)</td></tr><tr><td>M<sub>AL</sub></td><td>114.6 (18.0)</td><td>5.4 (7.2)</td><td></td><td>271.2 (23.2)</td></tr><tr><td>M<sub>AP</sub></td><td>116.5 (17.7)</td><td></td><td>4.0 (6.5)</td><td>244.7 (59.7)</td></tr><tr><td>M<sub>ALP</sub></td><td>114.5 (18.9)</td><td>4.9 (7.0)</td><td>3.6 (6.1)</td><td>238.2 (57.8)</td></tr><tr><td rowspan="4">Individual</td><td>M<sub>A</sub></td><td>119.2 (9.1)</td><td></td><td></td><td>279.4 (6.5)</td></tr><tr><td>M<sub>AL</sub></td><td>118.0 (9.0)</td><td>1.0 (1.5)</td><td></td><td>279.2 (6.5)</td></tr><tr><td>M<sub>AP</sub></td><td>119.0 (9.0)</td><td></td><td>0.5 (0.7)</td><td>279.0 (6.5)</td></tr><tr><td>M<sub>ALP</sub></td><td>118.0 (8.9)</td><td>0.9 (1.4)</td><td>0.5 (0.7)</td><td>278.8 (6.6)</td></tr></tbody></table>

SD, standard deviation; M<sub>A</sub>, model includes additive genetic effects; M<sub>AL</sub>, model includes additive genetic and litter effects; M<sub>AP</sub>, model includes additive genetic and pen effects; M<sub>ALP</sub>, model includes additive genetic, litter and pen effects

expected, variance components were estimated without bias using the full model (M<sub>ALP</sub>). On the one hand, the models that ignored litter effect (M<sub>AP</sub> and M<sub>A</sub>) greatly overestimated the additive genetic variance, which indicates that most of the litter effect moved to the additive genetic effect due to the strong genetic relationship between littermates (r = 0.5). Model M<sub>AP</sub> also overestimated pen variance, which suggests that part of the litter effect moved to the pen effect. On the other hand, the model that ignored pen effects (M<sub>AL</sub>) led to an unbiased estimate of additive genetic variance, but overestimated litter variance and increased residual variance, indicating that one part of the pen effect moved to the litter effect and the other part moved to the residual effect.

Based on group records for which phenotypes included litter and pen effects, variance components were estimated without bias by using the full model (M<sub>ALP</sub>). Models that ignored litter effects (M<sub>AP</sub> and M<sub>A</sub>) overestimated the additive genetic variance but this overestimation was much less than the one when individual records were analyzed without litter effects, which indicates that only part of the litter effect moved to the additive genetic effect. The amount of overestimation of pen variance due to ignoring litter effects was similar to that based on individual records. Similar to analysis of individual

records, the model that ignored pen effects (M<sub>AL</sub>) led to an unbiased estimate of the additive genetic variance, but overestimated the litter variance. Estimates of residual variances depended greatly on the model used for analysis. The model that ignored litter effects led to a slightly larger estimate of the residual variance and the model that ignored pen effects resulted in a very large estimate of the residual variance compared to the full model, which indicates that a large proportion of these effects merged into the residual effect. The largest estimate of the residual variance was obtained when using a model that ignored both pen and litter effects. These changes in estimated residual variances by different models based on group records are explained in the “Discussion” section.

For phenotypes without litter and pen effects, variance components that were estimated with the true model (M<sub>A</sub>) were unbiased regardless of whether individual or group records were used (Table 1). When the model included litter and pen effects, the resulting over-specification had a very small effect on estimates of variance components based on individual records, but had an impact on estimates based on group records. Using group records, the model that over-specified litter and pen effects resulted in small estimates of litter and pen variances, which slightly decreased the estimate of the additive genetic and residual variances.
The standard deviations of the estimated variance components from 100 replicates reflects their standard errors, which were very similar to the standard errors calculated with AI-REML (not shown). As expected, standard errors of estimates of variances based on group records were much larger than those based on individual records, which indicates a significant loss of information due to combining individual records into group records. When the model included pen effects ($M_{ALP}$ and $M_{AP}$), estimates of the residual variance had large standard errors, which highlights the difficulty to distinguish pen from residual effects based on group records.

### Prediction of BV using group records in different scenarios

As shown in Table 2, for simulated phenotypes with litter and pen effects, the models that ignored these effects greatly reduced the accuracy of EBV obtained from individual records, and those that ignored litter effects caused a serious inflation of EBV since the regression coefficient of BV on EBV was much less than 1. However, when analyzing group records, models that ignored litter and pen effects did not decrease the accuracy of EBV, while those that ignored litter effects led to a slight bias in EBV. The ratio of the accuracy of EBV obtained from group records to that from individual records was equal to 67.6%.

For phenotypes without litter and pen effects analyzed with a model that included these effects, the resulting over-specification did not decrease the accuracy of EBV regardless of whether individual or group records were used (Table 2). However, a slight deflation (reflected by the regression coefficient) of EBV was observed when using group records. This was in line with a small reduction of the estimate of the additive genetic variance due to over-specification. For phenotypes without litter and pen effects, the accuracy of EBV obtained from individual records increased

slightly, while the accuracy of EBV obtained from group records increased considerably. The ratio of the accuracy of EBV obtained from group records to that from individual records was equal to 77.0%. These results indicate that the magnitudes of the litter and pen effects have a considerable influence on the accuracy of EBV when using group records.

Accuracies of EBV according to group structure are in Table 3. With a given group size, having more littermates in the same pen led to a higher accuracy of EBV when using group records, regardless of the existence of litter and pen effects. The accuracy of EBV decreased from 0.53 when all animals of a litter were in the same pen to 0.41 when animals were randomly distributed across pens for phenotypes with litter and pen effects, and from 0.60 to 0.48 for phenotypes without litter and pen effects. In contrast, when using individual records, the accuracy of EBV increased slightly as the number of littermates in each pen decreased for phenotypes with litter and pen effects, and hardly changed for phenotypes without litter and pen effects.

Figure 1 shows the accuracy of EBV obtained from group records when group sizes were changed from 3 to 30 (covering 1–10 sub-litters, respectively), as well as the accuracy obtained from individual records for the scenario of group sizes up to 12. In these cases, the model used to predict BV was consistent with the model that was used to generate phenotypes. Clearly, the accuracy of EBV tended to decrease with increasing group size. This decrease was more marked for phenotypes with litter and pen effects than for phenotypes without those effects. In the scenario of phenotypes without litter and pen effects, accuracies of EBV obtained from group records with group sizes up to 12 individuals (average $12*0.8=9.6$) and up to 24 individuals (average 19.2) were equal to 77.0 and 68.4% of those predicted from individual records, respectively. In the scenario of phenotypes with litter

<table><caption>**Table 2** Accuracy of EBV and bias (regression of true BV on EBV) [mean (SD) of 100 replicates] from different models with estimated variance components for the base scenario ($L_{2 \times 3}$)</caption><thead><tr><th rowspan="2">Litter and pen effects simulated</th><th rowspan="2">Model</th><th colspan="2">Group records</th><th colspan="2">Individual records</th></tr><tr><th>Accuracy</th><th>Bias</th><th>Accuracy</th><th>Bias</th></tr></thead><tbody><tr><td rowspan="4">Yes</td><td>$M_A$</td><td>0.478 (0.038)</td><td>0.95 (0.107)</td><td>0.674 (0.019)</td><td>0.77 (0.028)</td></tr><tr><td>$M_{AL}$</td><td>0.478 (0.038)</td><td>1.01 (0.122)</td><td>0.693 (0.019)</td><td>1.00 (0.045)</td></tr><tr><td>$M_{AP}$</td><td>0.479 (0.038)</td><td>0.96 (0.108)</td><td>0.691 (0.018)</td><td>0.83 (0.028)</td></tr><tr><td>$M_{ALP}$</td><td>0.479 (0.038)</td><td>1.01 (0.121)</td><td>0.702 (0.019)</td><td>1.00 (0.042)</td></tr><tr><td rowspan="4">No</td><td>$M_A$</td><td>0.550 (0.031)</td><td>1.01 (0.065)</td><td>0.714 (0.017)</td><td>1.00 (0.031)</td></tr><tr><td>$M_{AL}$</td><td>0.550 (0.031)</td><td>1.03 (0.069)</td><td>0.714 (0.017)</td><td>1.01 (0.031)</td></tr><tr><td>$M_{AP}$</td><td>0.550 (0.031)</td><td>1.02 (0.066)</td><td>0.714 (0.017)</td><td>1.00 (0.031)</td></tr><tr><td>$M_{ALP}$</td><td>0.550 (0.031)</td><td>1.03 (0.070)</td><td>0.714 (0.017)</td><td>1.01 (0.031)</td></tr></tbody></table>

EBV, estimated breeding value; SD, standard deviation; $M_A$, model includes additive genetic effects; $M_{AL}$, model includes additive genetic and litter effects; $M_{AP}$, model includes additive genetic and pen effects; $M_{ALP}$, model includes additive genetic, litter and pen effects
<table><caption>Table 3 Accuracy [mean (SD) of 100 replicates] of EBV for different structures of groups with sizes up to 12 (average 9.6)</caption><thead><tr><th>Litter and pen effect simulated</th><th>Model</th><th>Placement of animals</th><th>Group records</th><th>Individual records</th></tr></thead><tbody><tr><td rowspan="3">Yes</td><td rowspan="3">M<sub>ALP</sub> with given true variances</td><td>A litter in 1 pen</td><td>0.529 (0.034)</td><td>0.696 (0.019)</td></tr><tr><td>A litter in 2 pen</td><td>0.480 (0.038)</td><td>0.702 (0.019)</td></tr><tr><td>Randomly in pens</td><td>0.407 (0.052)</td><td>0.706 (0.018)</td></tr><tr><td rowspan="3">No</td><td rowspan="3">M<sub>A</sub> with given true variances</td><td>A litter in 1 pen</td><td>0.598 (0.027)</td><td>0.714 (0.017)</td></tr><tr><td>A litter in 2 pen</td><td>0.550 (0.030)</td><td>0.714 (0.017)</td></tr><tr><td>Randomly in pens</td><td>0.476 (0.038)</td><td>0.715 (0.017)</td></tr></tbody></table>

SD, standard deviation; EBV, estimated breeding value; M<sub>ALP</sub>, model includes additive genetic effects; M<sub>A</sub>, model includes additive genetic, litter and pen effects

<figure><img src="image_3.png" /></figure>

<figure><img src="image_4.png" /></figure>

and pen effects, these proportions were equal to 67.6 and 53.0%, respectively.

Figure 2 shows that the accuracy of EBV tended to decrease with increasing group size in the scenario when animals were randomly distributed across pens. This trend was consistent with that in the scenario when a sub-litter of three littermates were in the same pen. Thus, for phenotypes without litter and pen effects, accuracies of EBV obtained from group records with group sizes up to 12 (average 9.6) and up to 24 (average 19.2) were equal to 66.6 and 55.9% of those estimated from individual records, respectively. In the scenario of phenotypes with litter and pen effects, these proportions were equal to 57.6 and 40.4%, respectively.

## Discussion

In this study, we extended the model for group records of Olson et al. [7] to the inclusion of multiple random factors such as litter and pen effects, as well as varying group sizes, and investigated the efficiency of using group records for genetic evaluation of feed intake in various scenarios. The extended model worked

appropriately for analysis of the simulated data. The variance components estimated from group records were consistent with those estimated from individual records when the correct model was used, but had larger standard errors. Nevertheless, our results show that group records could be an important source of information for genetic evaluation of individual BV.

### Estimation of variance components

Our results show that variance components of a trait can be estimated from group records, but the estimates had larger standard errors than those obtained from individual records. Variance components estimated from group records were consistent with those estimated from individual records when the correct model was used, i.e., the model that included litter and pen effects if they existed. When litter and pen effects were present but ignored in the model of analysis, variances estimated from group records and from individual records were both biased but to different degrees. When litter effects were ignored, overestimation of the additive genetic variance was much larger when it was based on individual records than on group
records. However, the change in the residual variances estimated with different models was much larger when they were based on group records compared to individual records. With the model that ignored litter or/ and pen effect and used group records, the estimate of the residual variance depended on the number of littermates and the number of pen mates (i.e., group size in this study). In scenario L$_{2}$×$_{3}$, average n$_{g}$ is equal to 12*0.8 = 9.6, the average number of litters represented in a pen is equal to 4, and the average number of littermates is 3*0.8 = 2.4. When pen effects are ignored and assumed to move to the residual effects, σ$_{e}$ 2 c = n 2 $_{g}$σ 2 c + n$_{g}$ σ 2 e = n$_{g}$ (n$_{g}$σ 2 c + σ 2 e ) ≈ 9.6*(9.6*40 + 200) = 9.6*584. Since n$_{g}$ is a diagonal element in R, the estimate of the residual variance with this model is expected to be approximately 584 but a slightly lower estimate of 558 was observed (Table 1), because part of the pen variance actually moved to the estimate of the litter variance. Similarly, when litter effects are ignored and litter variance is assumed to move to residual variance i.e.

$$
\begin{align*}
\sigma_{e_1}^2 &= \sum_{k=1}^{N_l} n_{lk}^2 \sigma_1^2 + n_g \sigma_e^2 \\
&= n_g \left( \sum_{k=1}^{N_l} n_{lk}^2 \sigma_1^2 / n_g + \sigma_e^2 \right) \\
&\approx 9.6^* \left( 4^* 2.4^* 40 / 9.6 + 200 \right) = 9.6^* 296,
\end{align*}
$$

thus, the estimate is expected to be 296. However, a much lower estimate of 226 was observed, because a large part of the litter variance moved to the additive genetic and pen variances. Finally, when both litter and pen effects are ignored and assumed to move to the residual effect, i.e.

$$
\sigma_{e_{cl}}^2 = n_g \left( \sum_{k=1}^{N_l} n_{lk}^2 \sigma_1^2 / n_g + n_g \sigma_c^2 + \sigma_e^2 \right) \approx 9.6^* 680,
$$

thus, the estimate from the model is expected to be 680. However, an estimate of 662 was observed, because part of the litter variance moved to the additive genetic variance.

Litter effects are usually included in the model to predict BV for growth traits [12–14]. In general, for feed efficiency in pig, BV is predicted based on individual records that are measured in a test station. Since in a test station only a relatively small proportion of the litters have more than one individual with records on feed intake, litter effects are often excluded from the prediction model

[15, 16]. The current study showed that when there is a litter effect and more than one individual per litter is included in the dataset, a model that ignores litter effects results in overestimation of the additive genetic variance (Table 1), a reduced accuracy of EBV and an inflation of EBV (Table 2) when individual records are used. When group records are used, the model that ignores litter effects resulted in a slight overestimation of additive genetic variance and a slight inflation of EBV, but did not reduce accuracy of EBV in the simulated scenarios. Thus, our results suggest that litter effects should be included in the model for genetic evaluation of feed efficiency traits, even when using group records.

On the other hand, over-specification of the model by including factors that do not have an effect on the trait, also has an unfavorable impact on estimates of variance components, as shown in analyses in which litter and pen had no effect on the trait but the model included litter or/and pen effects. This could be because REML estimates must be larger than zero. Our study shows that the unfavorable effect of over-specification was larger when group records rather than individual records were used. This could be due to larger standard errors of estimates that are based on group records rather than individual records, and thus a wider range of REML estimates above zero. As observed in the current study, over-specification of litter and/or pen effects in the model led to underestimation of the additive genetic variance when group records were used, but had a very tiny impact when individual records were used.

Pen effects are often included in the prediction model for the genetic evaluation of growth and feed efficiency traits in pig [14–16]. However, based on group records, the estimate of the residual variance had a large standard error when the model included pen effects, and sometimes there was a problem with convergence for both estimation of variance components and prediction of BV, especially when the number of individuals varied slightly between pens. If the number of animals per pen is constant, pen effects cannot be separated from residual effects, which suggests that it can be difficult to distinguish between pen and residual effects.

An alternative to the full model for analysis of group records is a reduced model by combining the pen effects into residual effects, with appropriate weights on residuals. Thus, σ 2 e ∗ c = n 2 $_{g}$σ 2 c + n$_{g}$ σ 2 e = n 2 $_{g}$bσ 2 e + n$_{g}$ σ 2 e = n$_{g}$ (n$_{g}$b + 1) σ 2 e , where b = σ 2 $_{c}$/σ 2 $_{e}$. Then, V(e ∗ c ) = R $^{∗}$σ 2 $_{e}$, where R ∗ ii = n$_{gi}$ (bn$_{gi}$ + 1). This reduced model is equivalent to the full model but greatly reduces computation demand and avoids the problem of convergence in the prediction of BV. When the dataset of group records is insufficient for accurate estimates of variance components, the ratio b = σ 2 $_{c}$/σ 2 e can be inferred from variance
components estimated from individual records of feed efficiency, or other appropriate traits with individual records, such as daily gain.

## Efficiency of genetic evaluation based on group records

Given the same group size, having more littermates in the same group (pen) led to higher accuracy of EBV when group records were used. Our results confirmed previous reports that when relationships between individuals within a group were closer, the accuracy of EBV was higher when group records were used [7]. By theoretical derivation and data analysis, Peeters et al. [6] concluded that the accuracy of the estimate of additive genetic variance increased as the level of relationships between individuals within a group increased. Our study showed that even when using the true variance components, the accuracy of EBV increased as the degree of relationships between individuals in each group increased (Table 3). A possible reason could be that the proportion of additive genetic to phenotypic variance at the group level increases as the level of relationships between group mates increases. For example, assuming no genetic relationship between parents, based on Eqs. (4), (5), (6) and (7) and the parameters used in the simulation, if a group consists of four litters and each has three individuals, $\sigma_{a*}^2 = 120(12 + 4(6*0.5)) = 2880$, $\sigma_{1*}^2 = 40(4*3^2) = 1440$, $\sigma_{c*}^2 = 40(12^2) = 5760$, $\sigma_{e*}^2 = 200(12) = 2400$, and thus, the ratio of $\sigma_{a*}^2$ to $\sigma_{e*}^2$ is 0.23. However, this ratio is 0.31 when a group consists of two litters and each has six littermates.

In contrast, based on individual records, the accuracy of EBV decreased slightly as the number of littermates in the same pen increased when there were litter and pen effects. In a breeding program, the breeding goal usually includes many traits and most traits can be measured individually. Therefore, although more littermates in the same pen is favorable for genetic evaluation of feed efficiency based on group records, it is necessary to investigate whether this strategy is optimal for the overall breeding goal in a pig breeding program.

The presence of litter and pen effects caused a slight reduction in the accuracy of EBV when individual records were used, and a large reduction when group records were used. This could be due to a quadratic relationship between the variance of the cumulative litter effects and the number of littermates, and between the variance of the cumulative pen effects and the number of pen mates. Considering a scenario in which a pen includes four litters of three individuals, the ratio of $\sigma_{a*}^2$ to $\sigma_{y*}^2$ is 0.23 when there are litter and pen effects, but increases to 0.46 when there are no litter and pen effects, although heritability for individual records is the same in both cases.

We carried out an additional analysis to compare the accuracy of EBV based on group records and individual records for a trait with a low heritability, in the base scenario. In this analysis, data were simulated by setting $\sigma_e^2=1000$ for the scenario with litter and pen effects, and $\sigma_e^2=1080$ for the scenario without litter and pen effects, but without changing the other variance components. This led to a heritability of 0.10. Based on individual records, the accuracy of EBV was 0.57 and 0.59 for the scenarios with and without litter and pen effects, respectively. Based on group records, the accuracy of EBV was 0.41 and 0.44 for scenarios with and without litter and pen effects, respectively. The ratios of accuracies for group records to those for individual records were 71.4 and 75.6% in these two scenarios, respectively, which were similar to those for a trait with a heritability of 0.3. These results indicate that heritability has limited influence on the efficiency of using group records for predicting BV, in terms of the accuracy in relation to that when individual records are used. In other words, group records are valuable for predicting BV, regardless of the heritability of the trait.

In pig production systems, there are two popular structures of pens, i.e. (1) there is one feeder per pen ("single pen"), and (2) one feeder is shared by two pens ("double pen"). We used the example in which a single pen has a group size up to 12 (average 9.6) and a double pen has a group size up to 24 (average 19.6). Accuracies of EBV based on group records of the double pen were equal to 87.8% (phenotype without litter and pen effects) and 77.5% (phenotype with litter and pen effects) of the accuracies based on group records of the single pen, in the scenario with an average of 2.4 littermates in the same group. These proportions were equal to 84.0 and 70.0% in the scenario in which pigs were randomly allocated into pens. Therefore, to use group records efficiently, we recommend a pen structure with one feeder per pen.

The use of group records could also be valuable for predicting BV in other species. Biscarini et al. [5] used cage records to predict BV for body weight and egg production in laying hens. Cooper et al. [8] used pen records to predict BV for feed intake in beef cattle. Shirali et al. [4] used cage records to predict BV for feed intake in mink. The extended model in our study enables the handling of multiple random factors and varying group sizes, which will facilitate the use of group records for predicting individual BV in all these species.

Based on group records, full-sibs within group have the same EBV. When a multiple-trait model that includes traits with individual records (e.g., group records for feed intake and individual records for average daily gain) is used, full-sibs within a group can have different EBV
for the group recorded trait. However, these differences in EBV between full-sibs within a group originate only from differences in the correlated traits between full-sibs. Genomic selection [17] has been successfully applied in pig breeding [18–20]. With genomic data, genotyped full-sibs within a group can have different EBV even when a single-trait model based on group records is used. In practical genetic evaluations, a good approach would be to predict BV for feed efficiency by a multiple-trait analysis using a single-step genomic model [21–23] and data that include individual (from a test station) and group records (from a farm) for feed efficiency together with individual records for correlated traits.

## Conclusions

Based on our findings, we conclude that the extended model for group records presented here can appropriately handle multiple fixed and random effects for estimation of variance components and prediction of BV using group records with varying group sizes. Estimates of variance components based on group records with unequal group sizes are consistent with those estimated from individual records when the correct model is used, although with larger standard errors. For traits such as feed intake in pigs, using group records for genetic evaluation of individual BV is feasible. For an efficient use of group records in genetic evaluation, group size should not be too large (e.g., a normal pen with its own feeder instead of two pens sharing a feeder for feed intake in pigs). In addition, a close genetic relationship between animals within a group is favorable for genetic evaluation based on group records, which should be taken into consideration when placing animals into groups (pens).

## Authors' contributions

GS, JJ and OFC conceived and designed the study. GS developed the model, performed the analysis and wrote the manuscript. JJ, OFC and BN participated in development of the model. PM helped in data analysis. OFC, JJ, TO and MS helped in interpreting results and improving the manuscript. All authors read and approved the final manuscript.

## Author details

## Acknowledgements

The work was performed in a project funded through the Green Development and Demonstration Programme (GUDP Grant No. 34009-14-0849) by the Danish Ministry of Food, Agriculture and Fisheries; SEGES, Pig Research Centre; and Aarhus University.

## Competing interests

The authors declare that they have no competing interests.

# Appendix

## An example to demonstrate the model and variance components

In this example, we use data from only two groups (Table 4), which is insufficient for estimating model parameters, but allows to exemplify the derivation of the model and variance components.

<table><caption>**Table 4** Data for the example used to demonstrate the model and variance components</caption><thead><tr><th>Id</th><th>Sire<sup>a</sup></th><th>Dam<sup>a</sup></th><th>Group (Pen)</th><th>Litter</th><th>Phenotype</th></tr></thead><tbody><tr><td>P4</td><td>P1</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>P5</td><td>P1</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>1</td><td>P3</td><td>P2</td><td>1</td><td>1</td><td>11</td></tr><tr><td>2</td><td>P3</td><td>P2</td><td>1</td><td>1</td><td>12</td></tr><tr><td>3</td><td>P3</td><td>P2</td><td>1</td><td>1</td><td>13</td></tr><tr><td>4</td><td>P3</td><td>P4</td><td>1</td><td>2</td><td>14</td></tr><tr><td>5</td><td>P3</td><td>P4</td><td>1</td><td>2</td><td>15</td></tr><tr><td>6</td><td>P3</td><td>P4</td><td>2</td><td>2</td><td>16</td></tr><tr><td>7</td><td>P5</td><td>P6</td><td>2</td><td>3</td><td>18</td></tr><tr><td>8</td><td>P5</td><td>P6</td><td>2</td><td>3</td><td>17</td></tr></tbody></table>

The model for individual records is:

$$y = Xb + Z_{1}l + Z_{c}c + Z_{a}a + e,$$

$$ \begin{bmatrix} 11 \\ 12 \\ 13 \\ 14 \\ 15 \\ 16 \\ 18 \\ 16 \end{bmatrix} = \begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \end{bmatrix} b + \begin{bmatrix} 1 & 0 & 0 \\ 1 & 0 & 0 \\ 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 1 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} l_1 \\ l_2 \\ l_3 \end{bmatrix} + \begin{bmatrix} 1 & 0 \\ 1 & 0 \\ 1 & 0 \\ 1 & 0 \\ 1 & 0 \\ 0 & 1 \\ 0 & 1 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} c_1 \\ c_2 \end{bmatrix} + \begin{bmatrix} 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \end{bmatrix} \begin{bmatrix} a_{p1} \\ \vdots \\ a_{p6} \\ a_1 \\ a_2 \\ \vdots \\ a_7 \\ a_8 \end{bmatrix} + \begin{bmatrix} e_1 \\ e_2 \\ e_3 \\ e_4 \\ e_5 \\ e_6 \\ e_7 \\ e_8 \end{bmatrix} $$

The covariance matrix of observations at the individual level is:

<footnote n="1">¹Center for Quantitative Genetics and Genomics, Department of Molecular Biology and Genetics, Aarhus University, 8830 Tjele, Denmark. ²SEGES, Pig Research Centre, 1609 Copenhagen, Denmark.</footnote>

<footnote><sup>a</sup> The sires and dams with unknown parents are not listed in the id column</footnote>
$$
\begin{aligned}
V(\mathbf{y}) &= Z_1 Z_1' \sigma_1^2 + Z_c Z_c' \sigma_c^2 + Z_a A Z_a' \sigma_a^2 + R \sigma_e^2 \\
&= \begin{bmatrix} J_{3 \times 3} & 0 & 0 \\ 0 & J_{3 \times 3} & 0 \\ 0 & 0 & J_{2 \times 2} \end{bmatrix} \sigma_1^2 \\
&\quad + \begin{bmatrix} J_{5 \times 5} & 0 \\ 0 & J_{3 \times 3} \end{bmatrix} \sigma_c^2 + A_s \sigma_a^2 + I_{8 \times 8} \sigma_e^2,
\end{aligned}
$$

where J is a matrix with elements being 1, A_s is a subset of A as a relationship matrix for individuals with records, and I is an identity matrix.

The model for group records is: $\mathbf{y}^* = \mathbf{X}^*\mathbf{b} + \mathbf{Z}_1^*\mathbf{1} + \mathbf{Z}_c^*\mathbf{c} + \mathbf{Z}_a^*\mathbf{a} + \mathbf{e}^*$, which can be constructed by:

$$ \mathbf{Ty} = \mathbf{T}(\mathbf{X}\mathbf{b} + \mathbf{Z}_1\mathbf{1} + \mathbf{Z}_c\mathbf{c} + \mathbf{Z}_a\mathbf{a} + \mathbf{e}). $$

According to Table 4, the indicator matrix is:

$$ \mathbf{T} = \begin{bmatrix} 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 \end{bmatrix}. $$

Thus, the model for group records becomes:

$$
\begin{aligned}
\begin{bmatrix} 65 \\ 51 \end{bmatrix} = \begin{bmatrix} 5 \\ 3 \end{bmatrix} b + \begin{bmatrix} 3 & 2 & 0 \\ 0 & 1 & 2 \end{bmatrix} \begin{bmatrix} l_1 \\ l_2 \\ l_3 \end{bmatrix} + \begin{bmatrix} 5 & 0 \\ 0 & 3 \end{bmatrix} \begin{bmatrix} c_1 \\ c_2 \end{bmatrix} \\
+ \begin{bmatrix} 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 \end{bmatrix} \begin{bmatrix} a_{p1} \\ \vdots \\ a_{p6} \\ a_1 \\ \vdots \\ a_8 \end{bmatrix} \\
+ \begin{bmatrix} \sum_{i=1}^{5} e_i \\ \sum_{i=6}^{8} e_i \end{bmatrix}.
\end{aligned}
$$

The covariance matrix of observations at the group level is:

$$
\begin{aligned}
V(\mathbf{y}^*) &= \mathbf{Z}_1^* \mathbf{Z}_1^{*\prime} \sigma_1^2 + \mathbf{Z}_c^* \mathbf{Z}_c^{*\prime} \sigma_c^2 + \mathbf{Z}_a^* \mathbf{A} \mathbf{Z}_a^{*\prime} \sigma_a^2 + \mathbf{R} \sigma_e^2, \\
&= \begin{bmatrix} 13 & 2 \\ 2 & 5 \end{bmatrix} \sigma_1^2 + \begin{bmatrix} 25 & 0 \\ 0 & 9 \end{bmatrix} \sigma_c^2 \\
&\quad + \begin{bmatrix} 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 \end{bmatrix} \sigma_a^2 \\
&\quad + \begin{bmatrix} 5 & 0 \\ 0 & 3 \end{bmatrix} \sigma_e^2.
\end{aligned}
$$

Table 5 presents the solutions for the effects in the model using individual records and using group records, given

<table><caption>Table 5 Solutions of the intercept (Int), pen effect (Pen), litter effect (Lit) and animal additive genetic effect (Anim) using individual records (Individual) and group records (Group) for the example</caption><thead><tr><th>Item</th><th>Individual</th><th>Group</th><th>Item</th><th>Individual</th><th>Group</th></tr></thead><tbody><tr><td>Int</td><td>14.81</td><td>14.94</td><td>Animp5</td><td>0.62</td><td>0.77</td></tr><tr><td>Pen1</td><td>-0.48</td><td>-0.79</td><td>Animp6</td><td>0.57</td><td>0.79</td></tr><tr><td>Pen2</td><td>0.48</td><td>0.79</td><td>Anim1</td><td>-1.17</td><td>-0.98</td></tr><tr><td>Lit1</td><td>-0.52</td><td>-0.47</td><td>Anim2</td><td>-0.94</td><td>-0.98</td></tr><tr><td>Lit2</td><td>0.14</td><td>-0.05</td><td>Anim3</td><td>-0.71</td><td>-0.98</td></tr><tr><td>Lit3</td><td>0.38</td><td>0.52</td><td>Anim4</td><td>-0.19</td><td>-0.57</td></tr><tr><td>Animp1</td><td>0.39</td><td>0.35</td><td>Anim5</td><td>0.04</td><td>-0.57</td></tr><tr><td>Animp2</td><td>-0.78</td><td>-0.71</td><td>Anim6</td><td>0.05</td><td>0.06</td></tr><tr><td>Animp3</td><td>-0.57</td><td>-0.79</td><td>Anim7</td><td>1.00</td><td>1.17</td></tr><tr><td>Animp4</td><td>0.36</td><td>0.12</td><td>Anim8</td><td>0.76</td><td>1.17</td></tr></tbody></table>

variance components of $\sigma_1^2=0.25$, $\sigma_c^2=0.25$, $\sigma_a^2=0.75$ and $\sigma_e^2=1.25$.

## Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Received: 18 March 2018 Accepted: 24 July 2018

Published online: 14 August 2018

## References

1. Williams CB, Jenkins TG. Impact of selection for feed efficiency on beef life cycle performance. In: Proceedings of the 8th world congress on genetics applied to livestock production: 13–18 August 2006, vol 27, Belo Horizonte; 2006. p. 10.

2. Patience JF, Rossoni-Serao MC, Gutierrez NA. A review of feed efficiency in swine: biology and application. J Anim Sci Biotechnol. 2015;6:33.

3. Aggrey SE, Karnuah AB, Sebastian B, Anthony NB. Genetic properties of feed efficiency parameters in meat-type chickens. Genet Sel Evol. 2010;42:25.

4. Shirali M, Nielsen VH, Moller SH, Jensen J. Longitudinal analysis of residual feed intake and BW in mink using random regression with heterogeneous residual variance. Animal. 2015;9:1597–604.

5. Biscarini F, Bovenhuis H, van Arendonk JA. Estimation of variance components and prediction of breeding values using pooled data. J Anim Sci. 2008;86:2845–52.

6. Peeters K, Ellen ED, Bijma P. Using pooled data to estimate variance components and breeding values for traits affected by social interactions. Genet Sel Evol. 2013;45:27.

7. Olson KM, Garrick DJ, Enns RM. Predicting breeding values and accuracies from group in comparison to individual observations. J Anim Sci. 2006;84:88–92.

8. Cooper AJ, Ferrell CL, Cundiff LV, Van Vleck LD. Prediction of genetic values for feed intake from individual body weight gain and total feed intake of the pen. J Anim Sci. 2010;88:1967–72.

9. Jensen J, Mantysaari EA, Madsen P, Thompson R. Residual maximum likelihood estimation of (co)variance components in multivariate mixed linear models using average information. J Ind Soc Agric Stat. 1997;49:215–36.
10. Henderson CR. Best linear unbiased prediction of nonadditive genetic merits in noninbred populations. J Anim Sci. 1985;60:111-7.

11. Madsen P, Jensen J. A user's guide to DMU—a package for analysing multivariate mixed models. Version 6; release 5.2. 2013. http://dmu.agrsc i.dk/DMU/Doc/Current/dmuv6_guide.5.2.pdf.

12. Chimonyo M, Dzama K. Estimation of genetic parameters for growth performance and carcass traits in Mukota pigs. Animal. 2007;1:317-23.

13. Guo X, Christensen OF, Ostersen T, Wang Y, Lund MS, Su G. Genomic prediction using models with dominance and imprinting effects for backfat thickness and average daily gain in Danish Duroc pigs. Genet Sel Evol. 2016;48:67.

14. Shirali M, Strathe AB, Mark T, Nielsen B, Jensen J. Joint analysis of longitudinal feed intake and single recorded production traits in pigs using a novel Horizontal model. J Anim Sci. 2017;95:1050-62.

15. Ostersen T, Christensen OF, Henryon M, Nielsen B, Su GS, Madsen P. Deregressed EBV as the response variable yield more reliable genomic predictions than traditional EBV in pure-bred pigs. Genet Sel Evol. 2011;43:38.

16. Hermesch S, Luxford BG, Grasera HU. Genetic parameters for lean meat yield, meat quality, reproduction and feed efficiency traits for Australian pigs 1. Description of traits and heritability estimates. Livest Prod Sci. 2000;65:239-48.

17. Meuwissen THE, Hayes BJ, Goddard ME. Prediction of total genetic value using genome-wide dense marker maps. Genetics. 2001;157:1819-29.

18. Knol EF, Nielsen B, Knap PW. Genomic selection in commercial pig breeding. Anim Front. 2016;6:15-22.

19. Forni S, Aguilar I, Misztal I. Different genomic relationship matrices for single-step analysis using phenotypic, pedigree and genomic information. Genet Sel Evol. 2011;43:1.

20. Su G, Christensen OF, Ostersen T, Henryon M, Lund MS. Estimating additive and non-additive genetic variances and predicting genetic merits using genome-wide dense single nucleotide polymorphism markers. PLoS One. 2012;7:e45293.

21. Aguilar I, Misztal I, Johnson DL, Legarra A, Tsuruta S, Lawlor TJ. Hot topic: a unified approach to utilize phenotypic, full pedigree, and genomic information for genetic evaluation of Holstein final score. J Dairy Sci. 2010;93:743-52.

22. Christensen OF, Lund MS. Genomic prediction when some animals are not genotyped. Genet Sel Evol. 2010;42:2.

23. Legarra A, Aguilar I, Misztal I. A relationship matrix including full pedigree and genomic information. J Dairy Sci. 2009;92:4656-63.

Ready to submit your research? Choose BMC and benefit from:

* fast, convenient online submission

* thorough peer review by experienced researchers in your field

* rapid publication on acceptance

* support for research data, including large and complex data types

* gold Open Access which fosters wider collaboration and increased citations

* maximum visibility for your research: over 100M website views per year

At BMC, research is always in progress.

Learn more biomedcentral.com/submissions

BMC