How to create a vector containing series name?
Posted: Wed Dec 15, 2010 6:01 am
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?
(Later, this should allow me to identify the corresponding (vlookup) variable name for an identified value).
...
group groupC {%jres} groupA
for !k =1 to groupC.@count
!lmk=groupC.@count
%kname = groupC.@seriesname(!k)
vector (!lmk) varnames
varnames(!k) = %kname
etc..
matrix(!lkm,3) matcorprob
colplace(matcorprob, vcorabs,1)
colplace(matcorprob,vcorprob,2)
colplace(matcorprob,varnames,3)
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?
(Later, this should allow me to identify the corresponding (vlookup) variable name for an identified value).
...
group groupC {%jres} groupA
for !k =1 to groupC.@count
!lmk=groupC.@count
%kname = groupC.@seriesname(!k)
vector (!lmk) varnames
varnames(!k) = %kname
etc..
matrix(!lkm,3) matcorprob
colplace(matcorprob, vcorabs,1)
colplace(matcorprob,vcorprob,2)
colplace(matcorprob,varnames,3)