pedigree-class

0th

Percentile

Class "pedigree"

Objects of class "pedigree" represent a set of individuals that can have two parents including their parent-child relations. The terminology has been taken from cattle breeding.

Keywords
classes
Objects from the Class

Objects can be created by calls of the form new("pedigree", ...), or more conveniently, pedigree(sire= ., dam = ., label = .).

References

R. A. Mrode, Linear Models for the Prediction of Animal Breeding Values, 2nd ed, CABI Publishing, 2005.

See Also

pedigree

Aliases
  • pedigree-class
  • chol,pedigree,ANY-method
  • coerce,pedigree,dtCMatrix-method
  • coerce,pedigree,data.frame-method
  • head,pedigree-method
  • show,pedigree-method
  • tail,pedigree-method
Examples
## Rather use, pedigree()!   The following is "raw code":
## Example from chapter 2 of Mrode (2005)
p1 <- new("pedigree",
          sire = as.integer(c(NA,NA,1, 1,4,5)),
          dam  = as.integer(c(NA,NA,2,NA,3,2)),
          label = as.character(1:6))
p1
(dtc <- as(p1, "dtCMatrix"))   # T-inverse in Mrode's notation
solve(dtc)
chol(p1)  # (left) Cholesky factor of A, the relationship matrix
Documentation reproduced from package lme4, version 0.99875-9, License: GPL version 2 or later

Community examples

Looks like there are no examples yet.