comp2vech {BGmisc} | R Documentation |
comp2vech Turn a variance component relatedness matrix into its half-vectorization
Description
comp2vech Turn a variance component relatedness matrix into its half-vectorization
Usage
comp2vech(x, include.zeros = FALSE)
Arguments
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. |
Details
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.
Value
The half-vectorization of the relatedness component matrix.
Examples
comp2vech(list(matrix(c(1, .5, .5, 1), 2, 2), matrix(1, 2, 2)))
[Package BGmisc version 1.3.2 Index]