View source: R/identifyModel.R
comp2vech | R Documentation |
comp2vech Turn a variance component relatedness matrix into its half-vectorization
comp2vech(x, include.zeros = FALSE)
x |
Relatedness component matrix (can be a matrix, list, or object that inherits from 'Matrix'). |
include.zeros |
logical. Whether to include all-zero rows. Default is FALSE. |
This function is a wrapper around the vech
function, extending it to allow for blockwise matrices and specific classes.
It facilitates the conversion of a variance component relatedness matrix into a half-vectorized form.
The half-vectorization of the relatedness component matrix.
comp2vech(list(matrix(c(1, .5, .5, 1), 2, 2), matrix(1, 2, 2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.