These functions return the symmetric matrix that produces the given
half-vectorization result.
Usage
vech2full(x)
vechs2full(x, diagonal = 1)
Value
A symmetric matrix
Arguments
x
A vector
diagonal
A value or vector of values to enter on the diagonal for vechs2full (default = 1)
Author
Based on functions from the the OpenMx package
Details
The input consists of a vector of the elements in the lower triangle
of the resulting matrix (for vech2full, including the elements along the diagonal
of the matrix, as a column vector), filled column-wise. For vechs2full,
the diagonal values are filled as 1 by default, alternative values can be
specified using the diag argument. The inverse half-vectorization takes a
vector and reconstructs a symmetric matrix such that vech2full(vech(x)) is
identical to x if x is symmetric.