Mat {GeneticSubsetter}R Documentation

Kinship Matrix Creator

Description

This function creates a kinship matrix for a set of genotypes. This function is a simplified version of the function "A.mat" in the R package rrBLUP.

Usage

Mat(genos)

Arguments

genos

A matrix of genotypes, where each column is one individual, each row is one marker, and marker values are 1, 0, or -1, or NA, where 0 represents a heterozygous marker, and NA represents missing data. All data in this matrix must be numeric.

Value

A matrix of kinship values between genotypes.

Author(s)

Ryan C. Graebner

References

Endelman JB (2011) Ridge regression and other kernels for genomic selection with R package rrBLUP. The Plant Genome 4:250-255.

Examples

data(genotypes)
Mat(genotypes)

[Package GeneticSubsetter version 0.8 Index]