Univariate animal model using MCMCglmm
Univariate animal model using MCMCglmm.
Here we demonstrate how to fit the simplest univariate linear animal model using different packages.
You can go straight to the code by clicking the package of your choice on the left-hand side menu, or you can read a bit more about what this model does below.
We assume that the phenotypic trait value of an individual is the sum of an intercept (that is, a baseline value, which in simple cases can be thought of as the mean trait value), a breeding value (that is, a contribution of genetic differences) and an environmental deviation.
The phenotypic variance can be decomposed into an additive genetic variance (the variance of breeding values) and an environmental variance (the variance of environmental deviations).
We may be interested in the narrow-sense heritability, which is the additive genetic variance divided by the phenotypic variance.
A simple univariate animal model let’s us estimate all those parameters.
Here it is not too difficult to describe the model in plain English, but for more complex models a mathematical equation may prove easier, shorter and less ambiguous.
Here we could write the model as
$$y_i = \mu + a_i + \epsilon_i$$
We have:
Often we will compute the heritabiltiy ($h^2$), which is $h^2 = \frac{\sigma_A^2}{\sigma_A^2 + \sigma_E^2}$
Writen by: Timothée Bonnet
Univariate animal model using MCMCglmm.
Univariate animal model using brms
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.