Change size of matrix

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Shawnty
Posts: 2
Joined: Fri Mar 24, 2017 5:03 am

Change size of matrix

Postby Shawnty » Wed Mar 29, 2017 3:00 am

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!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Change size of matrix

Postby EViews Gareth » Wed Mar 29, 2017 8:23 am

None of the things you're trying to do are supported in EViews 7. You'll have to upgrade to a more modern version.

Shawnty
Posts: 2
Joined: Fri Mar 24, 2017 5:03 am

Re: Change size of matrix

Postby Shawnty » Thu Mar 30, 2017 4:19 am

Okey, thanks for help.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests