Skip to contents

\(\hat S_{ik} = 1 - \frac{1}{2M}\sum_j |g_{ij} - g_{kj}|\).

Usage

morie_gwasem_kinship_ibs(genotypes)

Arguments

genotypes

n x m minor-allele-count matrix.

Value

n x n symmetric numeric matrix.

References

Kang, H. M. et al. (2010).

Examples

g <- rbind(c(0, 1, 2, 1), c(0, 1, 2, 2), c(2, 1, 0, 0))
morie_gwasem_kinship_ibs(g)
#>       [,1]  [,2]  [,3]
#> [1,] 1.000 0.875 0.375
#> [2,] 0.875 1.000 0.250
#> [3,] 0.375 0.250 1.000