makeA: Creates the additive genetic relationship matrix

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This returns the additive relationship matrix in sparse matrix format.

Usage

1
makeA(pedigree)

Arguments

pedigree

A pedigree where the columns are ordered ID, Dam, Sire

Details

Missing parents (e.g., base population) should be denoted by either 'NA' or '0'.

Uses relfactor function in package pedigreemm. Also, used as a support function to makeD.

Value

Returns A, or the numerator relationship matrix, in sparse matrix form.

Author(s)

matthewwolak@gmail.com

See Also

relfactor, makeD

Examples

1

Example output

Loading required package: Matrix
6 x 6 sparse Matrix of class "dsCMatrix"
                                           
[1,] 1.00 .     0.5000 0.5000 0.5000 0.2500
[2,] .    1.000 0.5000 .      0.2500 0.6250
[3,] 0.50 0.500 1.0000 0.2500 0.6250 0.5625
[4,] 0.50 .     0.2500 1.0000 0.6250 0.3125
[5,] 0.50 0.250 0.6250 0.6250 1.1250 0.6875
[6,] 0.25 0.625 0.5625 0.3125 0.6875 1.1250

nadiv documentation built on May 2, 2019, 4:55 p.m.