xpnd | R Documentation |
xpnd reconstitutes a symmetric matrix from a vector obtained with the vech function.
xpnd(x, nrow = NULL)
x |
vector with the components of the upper diagonal of the matrix |
nrow |
dimension of the matrix to be reconstitute. |
A symmetric matrix.
For internal use.
Clecio Ferreira, Diego Gallardo and Camila Zeller.
A<-matrix(c(1,2,2,5),nrow=2)
##vectorized A matrix
B<-vech(A)
B
##reconstitute matrix A using B
xpnd(B,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.