Page 1 of 1

Change size of matrix

Posted: Wed Mar 29, 2017 3:00 am
by Shawnty
Hi,
Im using Eviews 7.

I've started using eviews lately and have a bit of trouble with using matrix, and i cant find the right commands under eviews-help.

Q1. Concatenation
matrix(2,2) a =0
matrix(2,2) b=5
c = @hcat(a,b)

gives me the error "@hcat is an illegal or reserved name...."

Q2. Extract a range of values from matrix or vector
matrix(5,5) = a
matrix b = a(1->4,1->4) (This is what i want)

Q3. Sort matrix by first row where some values have the same value, i.e ranks become for example [1,2,2,3]

from an earlier post:
vector rks1 =@ranks(@rowextract(m1,1))
matrix m2=@capplyranks(m1,rks1)

"Invalid permutation index vector in "matrix m2=@capplyranks(m1,rks1)"

Thanks on advance!

Re: Change size of matrix

Posted: Wed Mar 29, 2017 8:23 am
by EViews Gareth
None of the things you're trying to do are supported in EViews 7. You'll have to upgrade to a more modern version.

Re: Change size of matrix

Posted: Thu Mar 30, 2017 4:19 am
by Shawnty
Okey, thanks for help.