Description Usage Arguments Value Examples
View source: R/center_kinship.R
Center a relatedness matrix, after Zhou's GEMMA function CenterMatrix
1 | center_kinship(mat)
|
mat |
a relatedness matrix |
a centered relatedness matrix
1 2 3 4 5 6 | readr::read_tsv(system.file("extdata",
"mouse100.cXX.txt",
package = "gemma2"),
col_names = FALSE)[, 1:100] -> kinship
e_out <- eigen2(as.matrix(kinship))
center_kinship(as.matrix(kinship)) -> kinship_centered
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.