computeA | R Documentation |
Use sorted pedigree to calculate a numerator relationship matrix based on a tabular method, where the individuals in Progeny
must be ordered genealogically.
The missing Sire
and Dam
are coded as 0.
computeA(Progeny, Sire, Dam)
Progeny |
A numeric vector of sorted progenies. |
Sire |
A numeric vector of sires according to progenies in |
Dam |
A numeric vector of dams according to progenies in |
A n by n numerator relationship matrix, where n refers to total number of individuals in Progeny
column.
Haipeng Yu and Gota Morota
Maintainer: Haipeng Yu haipengyu@vt.edu
# Load GCA package
library(GCA)
# Import cattle dataset
data(GCcattle)
# Pedigree information
head(cattle.pheno)
# Construct numerator relationship matrix
NRM <- computeA(Progeny = cattle.pheno$Progeny, Sire = cattle.pheno$Sire,
Dam = cattle.pheno$Dam)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.