blup {pedigree} | R Documentation |
Function to calculate breeding values using an animal model
Description
Fit an animal model to data, use a given variance ratio
(\alpha = \frac{\sigma^2_e}{\sigma^ 2_a}
). Calculate inverse of the
additive genetic relationship matrix using function makeInv()
of this package.
Usage
blup(formula, ped, alpha,trim = FALSE)
Arguments
formula |
formula of the model, do not include the random effect due to animal (generally ID). |
ped |
|
alpha |
Variance ratio ( |
trim |
If |
Value
Vector of solutions to the model, including random animal effects.
See Also
SamplePedigree
, gblup
,
makeAinv
,blup
Examples
example(gblup)
sol <- blup(P~1,ped = ped,alpha = 1/h2 - 1)
[Package pedigree version 1.4.2 Index]