
Last chance! 50% off unlimited learning
Sale ends in
This function returns a matrix with n * ( n + 1 ) / 2 rows and N * n columns which for any lower triangular matrix A transforms vec( A ) into vech(A)
elimination.matrix(n)
An
row or column dimension
Frederick Novomestky fnovomes@poly.edu
This function is a wrapper function to the function L.matrix
.
The formula used to compute the L matrix which is also called the elimination matrix is u.vectors
.
E.matrices
.
Magnus, J. R. and H. Neudecker (1980). The elimination matrix, some lemmas and applications, SIAM Journal on Algebraic Discrete Methods, 1(4), December 1980, 422-449.
Magnus, J. R. and H. Neudecker (1999) Matrix Differential Calculus with Applications in Statistics and Econometrics, Second Edition, John Wiley.
E.matrices
,
L.matrix
,
u.vectors
L <- elimination.matrix( 4 )
A <- lower.triangle( matrix( seq( 1, 16, 1 ), nrow=4, byrow=TRUE ) )
vecA <- vec( A )
vechA <- vech( A )
y <- L %*% vecA
print( y )
print( vechA )
Run the code above in your browser using DataLab