additive_genetic_animal | R Documentation |
Given a pedigree, and an index vector of observations, build and
additive_genetic_animal
model.
additive_genetic_animal(pedigree, idx)
pedigree |
object of class 'pedigree' |
idx |
integer vector of observed individuals (in the original codification) |
idx
must hold the index of observed individuals in the original
codification. If recoding took place when building the pedigree, this
function will convert the codes internally.
A list with elements pedigree
, incidence.matrix
,
structure.matrix
and structure.type
, which is a string
indicating either covariance
or precision
.
dat <- data.frame(id = 1:4,
sire = c(11, 11, 2, 3),
dam = c(12, NA, 1, 12))
ped <- build_pedigree(1:3, data = dat)
breedR:::additive_genetic_animal(ped, dat$id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.