computeA: Compute numerator relationship matrix.

Description Usage Arguments Value Author(s) Examples

View source: R/computeA.R

Description

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.

Usage

1
computeA(Progeny, Sire, Dam)

Arguments

Progeny

A numeric vector of sorted progenies.

Sire

A numeric vector of sires according to progenies in Progeny column.

Dam

A numeric vector of dams according to progenies in Progeny column.

Value

A n by n numerator relationship matrix, where n refers to total number of individuals in Progeny column.

Author(s)

Haipeng Yu and Gota Morota

Maintainer: Haipeng Yu haipengyu@vt.edu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 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)

HaipengU/GCA2 documentation built on March 1, 2021, 7:41 a.m.