Learn R Programming

nadiv (version 2.7)

makeA: Creates the additive genetic relationship matrix

Description

This returns the additive relationship matrix in both sparse and dense matrix formats.

Usage

makeA(pedigree)

Arguments

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

Value

  • Returns A, or the numerator relationship matrix, in sparse and dense matrix form.
  • AsparseA in sparse matrix form
  • AdenseA in dense matrix form

Details

Uses the algorithm of Meuwissen and Luo (1992). Also, used as a support function to makeD.

References

Meuwissen, T.H.E. & Luo, Z. 1992. Computing inbreeding coefficients in large populations. Genetics, Selection, Evolution 24, 305-313.

See Also

makeD

Examples

Run this code
makeA(Mrode2)

Run the code above in your browser using DataLab