Vech | R Documentation |
Obtain the half-stacking vector of a symmetric matrix
Vech(mtx)
mtx |
A symmetric matrix |
Stacking a matrix into a vector using data on and below the diagonal.
a vector consisting of stacked elements of a symmetric matrix
Ruey S. Tsay
m1=matrix(c(1:9),3,3) m2=(m1+t(m1))/2 v1=Vech(m2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.