scale_kinship: Scale kinship matrix

Description Usage Arguments Details Value Examples

Description

Scale kinship matrix to be like a correlation matrix.

Usage

1
scale_kinship(kinship)

Arguments

kinship

A kinship matrix, or a list of such in the case of the "leave one chromosome out" method, as calculated by calc_kinship().

Details

We take c_ij = k_ij / sqrt(k_ii k_jj)

Value

A matrix or list of matrices, as with the input, but with the matrices scaled to be like correlation matrices.

Examples

1
2
3
4
5
grav2 <- read_cross2(system.file("extdata", "grav2.zip", package="qtl2geno"))
map <- insert_pseudomarkers(grav2$gmap, step=1)
probs <- calc_genoprob(grav2, map, error_prob=0.002)
K <- calc_kinship(probs)
Ka <- scale_kinship(K)

rqtl/qtl2geno documentation built on May 28, 2019, 2:36 a.m.