kinship2dist: Converts a kinship matrix to a distance matrix

View source: R/ksGRM.R

kinship2distR Documentation

Converts a kinship matrix to a distance matrix

Description

Converts a kinship matrix to a distance matrix

Usage

kinship2dist(x)

Arguments

x

A square matrix containg kinship coefficients

Details

D_{ii}=0, D_{ij}=\frac{1-(x-min(x))}{(1-min(x))}

Value

A distance matrix

Author(s)

Jerome Goudet jerome.goudet@unil.ch


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