Page 1 of 1

matrix @dropcol procedure works incorrectly

Posted: Mon Aug 19, 2013 7:44 am
by fbrayton
I have been unable to get @dropcol to work as described. For example: I define the 4x4 matrix E to contain the integers 1 through 16 ordered by column, and then create F as

matrix F = E.@dropcol(1)

expecting to get back a 4x3 matrix with the integers 5-16 ordered by column. Instead, F is a 3x4 matrix with zeros in its last column.

A comment: I would find it useful if the ".fill" procedure would permit the i1:i2 syntax to load a sequence of integers, as in

matrix(4,4) E
E.@fill 1:16
or
E:@fill 5:8,21,32:35

This would be useful for the @row(i), @col(i), @droprow(i), @dropcol(i) matrix commands, as an ability to create sequences of integers would facilitate the construction of vector argument i in many applications.

Re: matrix @dropcol procedure works incorrectly

Posted: Mon Aug 19, 2013 7:49 am
by EViews Gareth
Thanks, we'll get it fixed. I doubt the : syntax is possible, but we'll look in to it.