Learn R Programming

nadiv (version 2.9)

makeA: Creates the additive genetic relationship matrix

Description

This returns the additive relationship matrix in sparse matrix format.

Usage

makeA(pedigree, method = NULL)

Arguments

pedigree
A pedigree where the columns are ordered ID, Dam, Sire
method
Indication of method to use. Either NULL, in which case the "fast" method is used by default, or one of "fast", "lowestmem", or "flowmem". Method "fast" uses a good deal of RAM and is fastest for smaller pedigrees. Method "lowestmem" is the slowest met

Value

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

Details

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

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

See Also

relfactor, makeD

Examples

Run this code
makeA(Mrode2)

Run the code above in your browser using DataLab