Indexing entire rows or columns in a matrix

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

ErikG
Posts: 85
Joined: Wed Jan 23, 2013 1:18 am

Indexing entire rows or columns in a matrix

Postby ErikG » Wed Jan 23, 2013 1:32 am

Hi,

Is there a direct way to index and manipulate matrix rows or columns in Eviews? For example:

mX[*,2] = mX[*,2] + vY ' (Add the vector vY to the second column of mX)

I have used:

vX2 = @columnextract(mX,2)
vX2plusY = vX2 + vY
colplace(mX,vX2plusY,2)

But this method is rather tedious compared to more direct methods...

Thanks,

Erik Glans
NIER, Sweden.

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

Re: Indexing entire rows or columns in a matrix

Postby EViews Gareth » Wed Jan 23, 2013 9:06 am

Unfortunately that is the only way.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests