unvech | R Documentation |
This function returns the symmetric matrix X from a vector that resulted from v = vech(X).
unvech(v)
v |
Vector, numeric. |
The vector v
must have length equal to m * (m + 1) / 2,
whereby m is a dimension of the symmetric matrix X_{m
\times m}.
X |
Matrix, symmetric of order m \times m. |
Bernhard Pfaff
vec
v <- c(1, 2, 3, 4, 5, 6) unvech(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.