Dmat: vector of the diagonal for the D matrix from the...

Description Usage Arguments Details Value Examples

View source: R/pedigree.R

Description

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

Usage

1
Dmat(ped)

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

Value

a numeric vector

Examples

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

Example output

Loading required package: lme4
Loading required package: Matrix
      1       2       3       4       5       6 
1.00000 1.00000 0.50000 0.75000 0.50000 0.46875 

pedigreemm documentation built on May 2, 2019, 1:07 p.m.