relfactor: Relationship factor from a pedigree

Description Usage Arguments Value Examples

View source: R/pedigree.R

Description

Determine the right Cholesky factor of the relationship matrix for the pedigree ped, possibly restricted to the specific labels that occur in labs.

Usage

1
relfactor(ped, labs)

Arguments

ped

a pedigree that includes the individuals who occur in svec

labs

a character vector or a factor giving the labels to which to restrict the relationship matrix. If labs is a factor then the levels of the factor are used as the labels. Default is the complete set of labels in the pedigree.

Value

an object that inherits from CHMfactor

Examples

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

pedigreeTools documentation built on May 2, 2019, 2:09 a.m.