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


hierfstat documentation built on May 6, 2022, 1:05 a.m.