Description Usage Arguments Details Value Examples
Normalize genetic similarity matrix.
1 2 | normalize.matrix(W, method = c("sample-variance", "diagonal",
"diagonal-average", "none"))
|
W |
symmetric, positive semidefinite matrix |
method |
"sample-variance", "diagonal" or "diagonal-average" |
To calculate heritability, particularly for different genetic similarity estimators, the genetic similarity matrix needs to be properly normalized. The default way is to force sample variance of animal effect to be unit.
Normalized matrix
1 2 3 | W <- matrix(c(1,1/2,1/2,1),2,2)
normalize.matrix(W, method="sample-variance")
normalize.matrix(W, method="diagonal")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.