vech | R Documentation |
This function returns a stack of the lower triangular matrix of a square matrix as a matrix with 1 column and n * ( n + 1 ) / 2 rows
vech(x)
x |
a matrix |
A matrix with \frac{1}{2}n≤ft( {n + 1} \right) rows and one column.
Frederick Novomestky fnovomes@poly.edu
Magnus, J. R. and H. Neudecker (1999) Matrix Differential Calculus with Applications in Statistics and Econometrics, Second Edition, John Wiley.
is.square.matrix
x <- matrix( seq( 1, 16, 1 ), nrow=4, byrow=TRUE ) print( x ) y <- vech( x ) print( y )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.