Change size of matrix
Posted: 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!
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!