computeA: Compute numerator relationship matrix.

Description Usage Arguments Value Author(s) Examples

Description

Use sorted pedigree to calculate numerator relationship matrix, where the individual in Progeny must be ordered from old to young. 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/Connectedness documentation built on July 3, 2019, 12:21 p.m.