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

View source: R/ksGRM.R

grm2kinshipR Documentation

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

Details

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

Value

a kinship matrix

Author(s)

Jerome Goudet jerome.goudet@unil.ch


jgx65/hierfstat documentation built on Nov. 21, 2024, 9:06 p.m.