rescalePopkin-deprecated {popkin} | R Documentation |
Rescale kinship matrix to set a given kinship value to zero.
rescalePopkin(kinship, subpops = NULL, min_kinship = NA)
kinship |
A kinship matrix |
subpops |
Vector of subpopulation assignments for each individual. |
min_kinship |
A scalar kinship value to define the new zero kinship. |
The rescaled kinship matrix, with the desired level of relatedness set to zero.