Learn R Programming

hierfstat (version 0.5-11)

grm2kinship: Converts a Genetic Relationship Matrix (GRM) to a kinship matrix

Description

Converts a Genetic Relationship Matrix (GRM) to a kinship matrix

Usage

grm2kinship(x)

Arguments

x

a square (GRM) matrix

Value

a kinship matrix

Details

\(k[ii]=x[ii]-1; k[ij]=x[ij]/2\)