Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

kinshipShift

Shifts a kinship matrix


Description

Shifts a kinship matrix

Usage

kinshipShift(x,shift=NULL)

Arguments

x

a square matrix

shift

the amount by which the elements of x should be shifted. if shift==NULL, the average of the off-diagonal elements is substracted

Details

The kinship matrix produced by beta.dosage is relative to the average kinship of the set of individuals analysed (1/(n(n-1)/2) ∑_i ∑_{j>i} x_{ij}=0). Another reference point might be useful, for instance to avoid negative kinship values, one might want to shift the matrix by min(x_{ij}), i \neq j.

Value

the shifted kinship matrix \frac{x-shift}{1-shift}

Author(s)

Jerome Goudet jerome.goudet@unil.ch


hierfstat

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.