kinshipShift | R Documentation |
Shifts a kinship matrix
kinshipShift(x,shift=NULL)
x |
a square matrix |
shift |
the amount by which the elements of x should be shifted. if |
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.
the shifted kinship matrix \frac{x-shift}{1-shift}
Jerome Goudet jerome.goudet@unil.ch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.