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 April 20, 2023, 8:34 a.m.