getA {pedigreeTools}R Documentation

Additive Relationship Matrix

Description

Returns the additive relationship matrix for the pedigree ped.

Usage

getA(ped)

Arguments

ped

a pedigree that includes the individuals who occur in svec 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

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

[Package pedigreeTools version 0.1 Index]