computeA: Compute numerator relationship matrix.

View source: R/computeA.R

computeAR Documentation

Compute numerator relationship matrix.

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

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

# 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/GCA documentation built on Oct. 1, 2023, 3:13 p.m.