Search found 9 matches

by Gibus
Fri Dec 31, 2010 5:58 am
Forum: Programming
Topic: how to rank a matrix from one of its vector?
Replies: 1
Views: 2397

how to rank a matrix from one of its vector?

I am eviws7 user When using bellow code 'sort the matrix by descending order vector vcorabsranked =@ranks(@columnextract(matcorprob,1),"d") matrix matcorprobranked = @rapplyranks(matcorprob, vcorabsranked) on folowing matrix named "matcorprob" 1.000000 NA 1.000000 0.313050 0.3784...
by Gibus
Fri Dec 31, 2010 5:38 am
Forum: Programming
Topic: extract and store into a vector the numeric part of string
Replies: 2
Views: 4206

Re: extract and store into a vector the numeric part of string

that worked fine. Thanks a lot 'create a workfile wfcreate q 1990 2010 'create a group which will contain the xs group group3 'create 6 series for %i res res1 x1 x4 x11 x100 X399 Re3 series {%i}=nrnd group3.add {%i} next scalar lmk = group3.@count vector(lmk) varnames for !k=1 to lmk %xname=group3%2...
by Gibus
Thu Dec 30, 2010 7:28 am
Forum: Programming
Topic: extract and store into a vector the numeric part of string
Replies: 2
Views: 4206

extract and store into a vector the numeric part of string

I am Eviews7 user. I have a group containing series names: RES RES1 X1 X4 X11 X100 I would like to create a (numeric) vector containing only the numeric part i.e NA 1 1 4 11 100 When using string vector with bellow code, scalar lmk = group3.@count svector (lmk) varnames for !k =1 to group3.@count %x...
by Gibus
Wed Dec 15, 2010 9:32 am
Forum: Programming
Topic: How to create a vector containing series name?
Replies: 3
Views: 5133

Re: How to create a vector containing series name?

Thanks for your answer.
Therefore, the only way is to use numerical serie names instead of string serie name i.e. X1 to Xn into 1 to n, or is there an another way?
by Gibus
Wed Dec 15, 2010 6:01 am
Forum: Programming
Topic: How to create a vector containing series name?
Replies: 3
Views: 5133

How to create a vector containing series name?

Hello, I am Eviews7 user. I would like to create a matrix(7,3) from the extraction of 3 vector columns from different other matrixs. One of this 3 vector columns should contain the serie (or variable) names of a group. As serie names are string, how can I create a vector contaning these string names...
by Gibus
Tue Dec 14, 2010 10:01 am
Forum: Programming
Topic: how to sort a matrix from one of its vector?
Replies: 7
Views: 9142

Re: how to sort a matrix from one of its vector?

Thanks but I don't understant how to use this command.

m1: input matrix (8 lines, 2 columns) with 2 columns named respectively C1 and C2
m2: output ordered matrix

matrix m2 = @capplyranks(m1, C1) 'doesn't work
by Gibus
Tue Dec 14, 2010 6:30 am
Forum: Programming
Topic: how to sort a matrix from one of its vector?
Replies: 7
Views: 9142

how to sort a matrix from one of its vector?

Hello I use eviews7. I got a matrix(7,2) containing 2 vectors (V1,V2). I would like to "sort", "rank" or "order" (whatever the command name), by descending order, the matrix using V1 (V2 reorders as well depending on V1 and is not fixed). Then identify the 2nd max of V1...
by Gibus
Tue Dec 14, 2010 3:03 am
Forum: Programming
Topic: correlation pvalue and index
Replies: 3
Views: 5433

Re: correlation pvalue and index

!kmax = @cimax(Vcor) leads to "Error assigend to scalar", Why? I think perhaps better to sort the vector by descending order and to select the second line V1(2). By the way how can I constraint te command "@cimax" e.g. !kmax = @cimax(Vcor) <>1, i.e.select max from the vector diff...
by Gibus
Mon Dec 13, 2010 10:26 am
Forum: Programming
Topic: correlation pvalue and index
Replies: 3
Views: 5433

correlation pvalue and index

Hi, 1)How can I get the probability of the correlation coefficient significantly different from 0? I know, this is possible via the command: matrix_name.cor(prob), but how can I get it via a command with 2 series i.e. scalar cor_pvalue =@cor({%Y},{%X})? 2)In a vector V1 (extracted from correlation m...

Go to advanced search