This package extends the functionality of the package pedigreemm
and contains the following improvements
- Resolves a critical bug in the prediction of random effects.
- Allows for animal models with single observations.
- Allows for random regression models.
- Allows to prespecify the variance components for faster estimation of random effects.
Also, the same models can be fitted in the Bayesian framework. The implementation is based on the package brms
with some adaptations
- Uses the same syntax for defining correlation between animals as
pedigreemm
(i.e. with argumentpedigree = list(...)
). - Avoids the calculation of the nummerator relationship matrix A (Covariance matrix between random effects).
- Allows to prespecify the variance components for faster estimation of random effects.
Install the package devtools
(with install.packages("devtools")
) and run the following line of code
devtools::install_github("retodomax/cowfit", dependencies=TRUE)
- Getting started with cowfit
- [Theory]