View source: R/identifyModel.R
vech | R Documentation |
vech Create the half-vectorization of a matrix
vech(x)
x |
a matrix, the half-vectorization of which is desired |
This function returns the vectorized form of the lower triangle of a matrix, including the diagonal. The upper triangle is ignored with no checking that the provided matrix is symmetric.
A vector containing the lower triangle of the matrix, including the diagonal.
vech(matrix(c(1, 0.5, 0.5, 1), nrow = 2, ncol = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.