Re: [R] Achieving 'reverse-Vech' of a matrix

2011-07-23 Thread Ted Harding
On 23-Jul-11 17:12:09, Megh Dal wrote: > Let say i have a square matrix and applied the 'vech' operator to stack > the lower triangular elements into a vector: > >> Mat <- matrix(1:25, 5) >> Mat > _ _ _[,1] [,2] [,3] [,4] [,5] > [1,] _ _1 _ _6 _ 11 _ 16 _ 21 > [2,] _ _2 _ _7 _ 12 _ 17 _ 22 > [3,]

[R] Achieving 'reverse-Vech' of a matrix

2011-07-23 Thread Megh Dal
Let say i have a square matrix and applied the 'vech' operator to stack the lower triangular elements into a vector: > Mat <- matrix(1:25, 5) > Mat      [,1] [,2] [,3] [,4] [,5] [1,]    1    6   11   16   21 [2,]    2    7   12   17   22 [3,]    3    8   13   18   23 [4,]    4    9   14   19   24