Description Usage Arguments Details Value Author(s) See Also Examples
This returns the additive relationship matrix in sparse matrix format.
1 | makeA(pedigree)
|
pedigree |
A pedigree where the columns are ordered ID, Dam, Sire |
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
.
Returns A, or the numerator relationship matrix, in sparse matrix form.
1 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.