Learn R Programming

popkin (version 1.2.2)

rescalePopkin-deprecated: Rescale kinship matrix to set a given kinship value to zero.

Description

Rescale kinship matrix to set a given kinship value to zero.

Usage

rescalePopkin(kinship, subpops = NULL, min_kinship = NA)

Arguments

kinship

A kinship matrix

subpops

Vector of subpopulation assignments for each individual.

min_kinship

A scalar kinship value to define the new zero kinship.

Value

The rescaled kinship matrix, with the desired level of relatedness set to zero.

See Also

popkin-deprecated