- Research article
- Open Access
Full sib pens of pigs are not suitable to identify variance component of associative effect: a simulation study using Gibbs Sampling
© Cheng et al; licensee BioMed Central Ltd. 2009
- Received: 16 October 2008
- Accepted: 27 February 2009
- Published: 27 February 2009
Accounting for and quantifying the associative effect of each animal could improve both welfare of animals and response to selection. Because of the limitation of REML, Gibbs Sampling could be an alternative technique to estimate the variance component of the associative effect. The objective of this study was to investigate the estimation accuracy of the variance component of associative effect by using simulation via Gibbs Sampling. The simulated data comprised five generations of pigs. The breeding animals of each generation were selected randomly. In the simulation, variations were introduced for the methods of assigning pens (random, mixed sib and full sib), the number of pigs per pen (5 or 10), the number of breeding animals per generation (162 or 324) and the correlation between genetic direct effect and genetic associative effect (-0.5, 0.1 or +0.5). Each set of simulation was run for 30 replications.
Random assignment or mixed sib assignment resulted in bias of estimated variance components in only 3 of 24 combinations. Furthermore, these 3 cases occurred with 162 breeding animals. With full sib assignment, 9 out of 12 groups of estimates significantly deviated from the true parameter value. The Root Mean Square Errors obtained with the full sib assignment were higher than with the other two methods of pen assignment in most of the cases. The Root Mean Square Errors obtained with datasets with 324 breeding animals were notably smaller than the datasets from 162 breeding animals. Within each method of pen assignment, the relative bias of the associative effect was significantly smaller with group size 10 than with group size 5.
Full sib assignment caused difficulties to estimate variance components in most of the cases, due to a lack of identifiability. With random and mixed assignment, most data structures yielded unbiased results but increasing the number of breeding animals or group size improves the estimation. Thus to get identifiable and unbiased estimates of the genetic associative effect, it is recommended to avoid close genetic relationship between animals within one pen and to use sufficient numbers of breeding animals and sufficient group sizes.
- Root Mean Square Error
- Group Size
- Variance Component
- Random Assignment
- Breeding Animal
Social interactions are commonly observed among group housed livestock and some of them have negative effects, such as: aggressive behaviour for social rank and competition for limited resources (food, water, space). These interactions may become more important when resources are more restricted leading to increase of injuries and decrease of productivity [1, 2]. Artificial selection ignoring these interactions has been proven to result in a suboptimal selection response [3, 4]. Thus quantifying and accounting for the interaction among animals could improve both the welfare of animals and the response to selection.
According to Griffing , the interaction among animals is defined as a competitive effect. The genetic direct effect refers to the effect of the genes of the individual itself and is expressed in its own phenotype. Instead, the genetic associative effect of an animal refers to genes that influence the performance of its penmates. Attempts have been made to estimate both the genetic direct effect and the genetic associative effect using performance and pedigree data (breeding value estimation). Estimation of the magnitude of the associative effect has been performed employing Restricted Maximum Likelihood (REML) [5–7]. However, the REML estimator relies on an asymptotic distribution, which means the inferences are valid strictly for a sample of infinite size [8–10]. Therefore it is difficult to calculate reliable confidence intervals around REML variance components parameters.
Implementation of Bayesian method may provide a valuable alternative. Bayesian Markov Chain Monte Carlo (MCMC) methods have been introduced to quantitative genetics since the early 1990s . Gibbs Sampling has been frequently applied to animal breeding and plant breeding . However, until now few studies have been undertaken to investigate the accuracy of the estimation of the associative effect via Gibbs Sampling . Moreover, the impact of the data structure affected by methods to assign pigs to pens, group size (pigs/pen) or the population size simultaneously on the estimation of variance components has not yet been studied.
The objective of this study was to investigate the accuracy of the posterior means of variance components in relation to the (genetic) relationships among penmates, the number of pigs per pen and the variation of the number of breeding animals.
In this study, datasets were simulated for 36 combinations of parameters. Each set of parameters was replicated 30 times. Simulations were programmed in R 2.5.1  and performed on the cluster computer 'VIC' at the K. U. Leuven.
Initial tests indicated that a total length of the Gibbs chain of 550000 was sufficient. The burn-in period was fixed at 50000, which means that the first 50000 samples were discarded. To reduce the correlation between Gibbs samples, a conservative thinning rate of 500 was used. Therefore, 1000 Gibbs samples of each chain were saved. Geweke and Gelman diagnostics were used to access the convergence of Gibbs Samples. With respect to full sib assignment, less than 33% of the replications gave a diagnostic value around 1.2, whereas 95% of the replications with the random and mixed sib assignment had a diagnostic value around 1.02.
Confirmation of theoretical justification
Estimation with a model considering only genetic direct effect (and e) yielded = 1699.40, = 3830.93. Compared with the true parameter set: = 1250, σ ad = 140, = 62.5 and = 3687, the estimations of both and were inflated. It confirms that ignoring the genetic associative effect results in bias of estimations of the other variance components.
The mean and standard error of posterior distribution of d, a and e
(d & a)
Number of breeding animals per Generation
( σ da = -140)
( σ da = 27.95)
( σ da = 140)
With S324, estimates obtained from random pen assignment or mixed sib pen assignment with different group sizes and correlations were not significantly different from the true parameter values. When there were 162 breeding animals per generation, 3 estimates were significantly different from the true parameter values at the 5% significance level (p-value < 0.05). This occurred with the following combinations: random pen assignment, correlation 0.1 and group size 5; mixed sib assignment, correlation 0.1 and group size 10; mixed sib assignment, correlation -0.5 and group size 5.
Root Mean Square Error (RMSE)
With the method of full sib assignment (p3) and the following combinations, datasets yielded higher RMSE compared to assignment methods p1 and p2: S324, correlation -0.5; S324, correlation +0.1; S162, correlation +0.1; S162, correlation +0.5. The RMSE from the full sib assignment depended on correlations, indicating that there may be an association between full sib assignment and "correlation" (between d &a) on the uncertainty of estimates for the associative effect.
Percent relative bias
The results from MANOVA test of relative bias showed a significant interaction between the number of breeding animals, the method of pen assignment and the correlation (Wilk's Lambda test: F value = 2.21, p-value = 0.0037). Interaction between pen assignment method and group size (Wilk's Lambda test: F value = 9.04, p-value < 0.0001) was also significant at the family wise significance level of 0.1 (the significance level for the individual test is 0.006).
The plot for full sib assignment (figure 3) illustrated that there was no significant difference between S162 and S324 when the correlation equalled -0.5 (p-value = 0.2531) (figure 3). However, the difference became significant when the true correlation equalled 0.1 or +0.5 (correlation = +0.1, p-value = 0.0014; correlation = +0.5, p-value < 0.0001). When the true correlation was +0.5, the relative bias from S324 was significantly smaller, and when the true correlation was +0.1, the relative bias from S324 was significantly larger than from S162.
In this study, we simulated average daily gain of pigs for 36 data structures combining 4 parameters; the number of breeding animals per generation, correlation between d &a, methods of pen assignment and group size. The simulated pedigree structure of 5 generations represented a realistic breeding scheme.
Our results showed that ignoring the genetic associative effect led to overestimations of and , which was in agreement with Cappa and Cantet . In our study, σ ad was set to +140 in the simulation. As mentioned in the method part, the biases of and consist of the sum of two terms: and . Thus these two terms and the sum of them were all positive, which inflated the estimations of and .
Cappa and Cantet performed a simulation of genetic associative effect among forest trees using Gibbs Sampling . In their study, simulation parameters were = 12.553, = -3.126, = 1.259 and = 5.189. When the genetic associative effect was excluded from the model, was 10.644 and was 9.257, i.e., was overestimated. The reason was that σ ad used in their study had a negative value. Thus the biases of and depended on the magnitude of and . When the magnitude of the second term was larger than the first term, the biases were positively inflated.
With full sib assignment, 11 out of 12 combinations showed biased estimations at the 1% significance level. Random assignment or mixed sib assignment resulted in bias of estimated variance components in only 3 of 24 combinations. Moreover, all these three biased results were found with 162 breeding animals only. Thus random composition and mixed sib composition of pen groups resulted in unbiased estimates of variance components. The more penmates are genetically related, the more difficult it is to separate variance components. Estimation accuracy benefits from larger numbers of breeding animals.
Cantet and Cappa have pointed out recently that models with genetic direct effect and genetic associative effect may face the problem of identifiability . Identifiability means that parameters are weakly identified because the data provide little information . Bayesian non-identifiability is equivalent to lack of identifiability in likelihood . Cantet and Cappa have shown that the variance components are identifiable only and only if the smallest eigenvalue of the restricted maximum likelihood (REML) information matrix is positive.
To investigate the identifiability of the cases which resulted in biased estimations, we selected several pairs of pens from the simulated data randomly with full sib assignment and calculated the eigenvalues of information matrix using the method introduced by Cantet and Cappa. The genetic relationship coefficients between pigs in different pens ranged from 0.02 to 0.07. The results indicated that two eigenvalues of the information matrix were zero, i.e. the information matrix is singular and parameters can not be estimated separately. Thus we suspect that the biased estimations of the parameters with full sib assignments are due to the lack of the identifiability.
In Cantet and Cappa's study, the problem of identifiability was related to the confounding between the genetic associative effect and fixed pen effect. In our study, we did not include a variance component for pens in the simulation model. It implied that not only the fixed pen effect, but also the assignment methods play a role in identifying variance components separately. Cantet and Cappa have illustrated this in a theoretical way. We confirmed this by the simulation. In addition, Cantet and Cappa suggested an alternative model with different intensities of competition for each animal by exchanging animals between pens time by time. Although it could improve the identifiability theoretically, it is difficult to implement this in reality.
Gelfand and Sahu mentioned that a consequence of a non-identifiable model is the possibility of drifting which could result in the difficulty of convergence. In our study the Gelman diagnostics computed on Gibbs chains with full sib assignment were slightly above 1 for about one third of the replicates. This may indicate the poor convergence in some replicates. Both the biased estimates and a poor quality of convergence may be due to the identifiability issue.
Our results obtained by Gibbs Sampling confirmed the results of the study of Bijma and Muir's using ASREML . They also investigated the data structure used by Wolf  and found that the variance of genetic associative effect was not identifiable when group members had a strong genetic relationship. They suggested using random composition of pens. We also found that the variance components obtained with the full sib assignment were biased. In addition, not only random assignment but also mixed sib assignment provided unbiased estimations of variance components in most cases.
Within each method of pen assignment, the relative bias of the variance of associative effect was significantly smaller with group 10 than group size 5. It indicates that estimations with larger group size produce smaller relative bias than smaller group size.
With respect to the uncertainty of estimations, most RMSE obtained with the method of full sib assignment were considerably larger than cases with the other two methods of pen assignments, which was inconsistent with the results of Van Vleck . Van Vleck simulated data with similar pen assignment methods: full sib assignment, random assignment and mixed full sib assignment (half of the penmates are full sibs from one litter and the other half from another litter). He found that there was no problem to separate variance components for all these three methods of pen assignments and the standard deviation obtained from the full sib assignment was the smallest among the three pen assignments. In our results, it was hard to separate d & a and the standard deviation of a was large in the most cases. However, the estimation was unbiased with the combination: correlation +0.5, S324 and full sib assignment. Furthermore, the RMSE obtained from that combination was also similar to the other combinations with full sib assignment. Van Vleck  only looked at the influence of assignment methods without varying any of the other parameters that we simulated. We also found one combination of parameters that gave unbiased results. But the other 11 combinations showed problems obviously. It is concluded that in general full sib assignment should be avoided to generate data from which an associative effect is to be estimated.
It is concluded that ignoring the genetic associative effect causes biased variance components which could lead to unrealistic selection perspective. The estimation of the genetic associative effect via Gibbs Sampling is dependent on the data structure. Investigation of the required minimum number of breeding animals per generation and the number of penmates per pen is therefore warranted before starting real experiments. Furthermore, full sib assignment should be avoided as an experimental design to determine associative effect.
Datasets were simulated for a pure bred population and a single trait (average daily gain of pigs, g/day). The phenotype of individuals was composed of heritable and non-heritable effects. We assumed the associative effect to be (partially) genetic and expressed in the performance of the penmates. The simulation model included one fixed effect (sex) and three random effects: genetic direct effect, genetic associative effect and random error .
Y = Xb + Z d d + Z a a + e
Y represented the average daily gain of the pig; b indicated the effect of sex on the average daily gain (+20 for males and -20 for females); d represented the genetic direct effect; a represented the genetic associative effect, affecting the growth of penmates; e represented the independent random residual of the individual pig; X, Z d , Z a were incidence matrix of each effect corresponding to each individual.
, were the variances of genetic direct effect and genetic associative effect respectively; σ da was the covariance between d &a; was the variance of the random residuals, accounting for the non-genetic effect. It was assumed that the residuals of each pig are independent. A represented the numerator relationship matrix, which accounted for the pedigree information of animals. Σ was the variance-covariance matrix of random effects d, a and e. G was the variance-covariance matrix of genetic effects d and a.
d i denoted the genetic direct effect of the individual i; a ji denoted the genetic associative effect coming from the j th penmate of the i th individual; p denoted the number of penmates of the i th individual; e i denoted the random residual of the i th individual.
Based on the Cholesky decomposition , G was separated into a product of a matrix and its transpose. For the animals from the base generation, d and a were simulated using the partitioned matrix obtained from G multiplied by standard random normal deviates. For the following generations (progeny), d and a were the sum of the average of the d and a of the parents and a random Mendelian sampling term. e was simulated as the deviation of random residuals multiplied by a standard random normal deviate.
Simulation included five generations of pigs, and breeding animals for each generation were selected randomly. Litter size followed a normal distribution varying from 2 to 20 with mean equal to 9 and standard deviation equal to 2.6. Sex effect was simulated assuming a uniform distribution, i.e. the probability of male or female was 50%. Since litter size was not fixed, the total number of animals in each replication was not fixed.
In order to investigate the impact of the data structure on the estimation of variance components, a number of data sets were simulated. The influence of pen composition (assignment of pigs to pens), group size (pigs/pen), number of breeding animals and the covariance (cov) between d & a were examined. Three different scenarios were used to assign pigs to pens. The first scenario was to assign pigs randomly (p1). The second one was to assign half of the pens with full sibs and the other half non full sibs (p2) and the third one was to assign full sibs per pen (p3) [6, 20]. Within each pen assignment scenario, 162 and 324 breeding animals (S162 and S324), two different group sizes (5 and 10) and three different correlations between d & a (-0.5, +0.1, +0.5) were specified.
Variance components were analysed using the Multiple Trait Gibbs Sampler for Animal Models (MTGSAM)  and applying the same statistical model as the one used for simulation. In its original version, MTGSAM could only handle models with direct and maternal genetic effects. For this study we modified the program and extended it to include the genetic associative effect.
where is the estimated value of parameters obtained in each replication; θ is the true value used for simulation and n is the number of replications.
The accuracy of the parameter estimates was quantified by the percent relative bias. The percent relative bias was calculated as . To study the effects of pen assignment, group size, number of breeding animals and the correlation between d &a simultaneously on the percent relative bias of the four variance components (d, cov, a and e), multivariate analysis of variance (MANOVA) was used (GLM, SAS 9.1.3) .
Theoretical justification for including genetic associative effect
If we consider A and B to be half sibs, then the genetic relationship between A and B is 0.25, i.e. A AB = 0.25. To make sure that the covariance between A and B is an unbiased estimation of , should be zero. If σ ad and are not equal to zero, the coefficients related to σ ad and should be zero. That means animal A is unrelated to the penmates of B and animal B is unrelated to the penmates of A. Moreover, there should be no genetic relationships between penmates P1,...,P4 and Q1,...,Q4. However, it is unrealistic to assume that all animals are genetically unrelated. Thus the terms related to σ ad and will be non-zero and affect the estimation of . The magnitude of bias depends on the magnitude of the terms related to σ ad and . Only when σ ad and have the same magnitude and opposite sign, the bias is zero.
To investigate the bias of , consider animals A and B have no genetic relationship, i.e. A AB = 0. If the genetic associative effect is ignored, the variation caused by σ ad and will flow into the variance of the residual variance leading to bias of . In order to reduce the bias introduced by σ ad and , one possibility is to have and equal to zero, which is unrealistic as mentioned before. Similarly, the bias of estimation of depends on the magnitude of σ ad and . It could be zero when the magnitudes of them are equal with opposite sign.
To confirm this, we took the simulation data obtained from the parameter combination of group size 5, correlation 0.5, 324 breeding animals and mixed full sib assignment. The estimation with a model considering only genetic direct effect and random residual was compared to the true value of simulation parameters.
The research was financially supported by IWT Vlaanderen, the Flemish Institute for the Promotion of Innovation through Science and Technology. We also thank the Pigbook (Vlaams Varkens stamboek) for financial support. Simulation and analyses were performed on the high performance cluster "VIC" of K. U. Leuven.
- Siegel HS: Stress, Strains and Resistance. British Poultry Science. 1995, 36: 3-22. 10.1080/00071669508417748.View ArticlePubMedGoogle Scholar
- Muir WM: Indirect selection for improvement of animal Well-being. Edited by: Muir WM, Aggrey SE. 2003, Wallingford, U.K: CABI, 247-255.Google Scholar
- Griffing B: Selection in Reference to Biological Groups. I. Individual and Group Selection Applied to Populations of Unordered Groups. Australian Journal of Biological Sciences. 1967, 20: 127-139.PubMedGoogle Scholar
- Muir WM: Incorporation of competitive effects in forest tree or animal breeding programs. Genetics. 2005, 170: 1247-1259. 10.1534/genetics.104.035956.PubMed CentralView ArticlePubMedGoogle Scholar
- Arango J, Misztal I, Tsuruta S, Culbertson M, Herring W: Estimation of variance components including competitive effects of Large White growing gilts. Journal of Animal Science. 2005, 83: 1241-1246.PubMedGoogle Scholar
- Ellen ED, Muir WM, Teuscher F, Bijma P: Genetic improvement of traits affected by interactions among individuals: sib selection schemes. Genetics. 2007, 176: 489-499. 10.1534/genetics.106.069542.PubMed CentralView ArticlePubMedGoogle Scholar
- Van Vleck LD, Cassady JP: Unexpected estimates of variance components with a true model containing genetic competition effects. Journal of Animal Science. 2005, 83: 68-74.PubMedGoogle Scholar
- Cappa EP, Cantet RJC: Bayesian inference for normal multiple-trait individual-tree models with missing records via full conjugate Gibbs. Canadian Journal of Forest Research-Revue Canadienne de Recherche Forestiere. 2006, 36: 1276-1285. 10.1139/X06-024.View ArticleGoogle Scholar
- Sorensen D, Wang CS, Jensen J, Gianola D: Bayesian-Analysis of Genetic Change Due to Selection Using Gibbs Sampling. Genetics Selection Evolution. 1994, 26: 333-360. 10.1051/gse:19940403.View ArticleGoogle Scholar
- Sorensen D, Gianola D: An Introduction to Likelihood Inference. Likelihood, Bayesian, and MCMC Methods in Quantitative Genetics. Edited by: Sorensen DA, Gianola D. 2002, New York: Springer-Verlag, 143-144.View ArticleGoogle Scholar
- Van Tassell CP, Van Vleck LD: Multiple-Trait Gibbs Sampler for Animal Models: Flexible Programs for Bayesian and Likelihood-Based (Co)variance Component Inference. Journal of Animal Science. 1996, 74: 2586-2597.PubMedGoogle Scholar
- The R Project for Statistical Computing. [http://www.r-project.org/]
- Cappa EP, Cantet RJC: Bayesian estimation of direct and competitive additive (co)variance in individual mixed models. In 8th world Congress on Genetics Applied to Livestock Production. 2006Google Scholar
- Cantet RJC, Cappa EP: On identifiability of (co)variance components in animal models with competition effect. Journal of Animal Breeding and Genetics. 2008, 124: 371-381. 10.1111/j.1439-0388.2008.00743.x.View ArticleGoogle Scholar
- Gelfand AE, Sahu SK: Identifiability, Improper Priors and Gibbs Sampling for Generalized Linear Models. Journal of the American Statistical Association. 1999, 94: 247-253. 10.2307/2669699.View ArticleGoogle Scholar
- Bijma P, Muir WM, Ellen ED, Wolf JB, Van Arendonk JAM: Multilevel selection 2: Estimating the genetic parameters determining inheritance and response to selection. Genetics. 2007, 175: 289-299. 10.1534/genetics.106.062729.PubMed CentralView ArticlePubMedGoogle Scholar
- Wolf JB: Genetic architecture and evolutionary constraint when the environment contains genes. Proceedings of the National Academy of Sciences of the United States of America. 2003, 100: 4655-4660. 10.1073/pnas.0635741100.PubMed CentralView ArticlePubMedGoogle Scholar
- Van Vleck LD: Three designs for estimating variances due to competition genetic effects [abstract]. Journal of Animal Science. 2005, 83: 40-Google Scholar
- Roger AH, Charles RJ: Matrix Analysis. 1985, Cambridge: Cambridge University PressGoogle Scholar
- Wechsler B: Rearing Pigs in Species-specific Family Groups. journal of animal welfare. 1996, 5: 25-35.Google Scholar
- Gelman A, Rubin D: Inference From Iterative Simulation using Multiple Sequences. Statistical Science. 1992, 7: 457-511. 10.1214/ss/1177011136.View ArticleGoogle Scholar
- Geweke J: Evaluating the Accuracy of Sampling-Based Approaches to the Calculation of Posterior moments. Bayesians Statistics 4. Edited by: Bernado JM, Berger JO, Dawid AP, Smith AFM. 1992, Oxford: Oxford University Press, 169-193.Google Scholar
- Lehmann EL, Casella G: Theory of Point Estimation. 1998, New York: Springer-VerlagGoogle Scholar
- Maas CJM, Hox JJ: Sufficient Sample Sizes for Multilevel Modeling. Methodology. 2005, 1: 86-92. 10.1027/1614-2241.1.3.85.View ArticleGoogle Scholar
- Sas Institute Home Page. [http://www.sas.com/]
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.