Learn R Programming

pedigreemm (version 0.3-5)

inbreeding: Inbreeding coefficients from a pedigree...

Description

Inbreeding coefficients from a pedigree

Usage

inbreeding(ped)

Value

a numeric vector

Arguments

ped

an object that inherits from class pedigree

Details

Determine the inbreeding coefficients for all the individuals of a pedigree. This function a numeric vector.

References

2010. A.I. Vazquez, D.M. Bates, G.J.M. Rosa, D. Gianola and K.A. Weigel. Technical Note: An R package for fitting generalized linear mixed models in animal breeding. Journal of Animal Science, 88:497-504.

Examples

Run this code
ped <- pedigree(sire = c(NA,NA,1, 1,4,5),
                dam  = c(NA,NA,2,NA,3,2), label= 1:6)
inbreeding(ped)

Run the code above in your browser using DataLab