Learn R Programming

pedigreemm (version 0.3-5)

Dmat: vector of the diagonal for the D matrix from the decomposition A= TDT'

Description

numeric vector that should be the diagonal elements of the diagonal matrix D

Usage

Dmat(ped)

Value

a numeric vector

Arguments

ped

an object that inherits from class pedigree

Details

Determine the diagonal factor in the decomposition of the relationship matrix from a pedigree equal to TDT'. Where T is unit lower triangular and D is a diagonal matrix. This function returns a numeric vector with the entries of D

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)
Dmat(ped)

Run the code above in your browser using DataLab