Matrix language @csum

For questions regarding programming in the EViews programming language.

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

lunatic247
Posts: 1
Joined: Thu Dec 23, 2010 2:31 am

Matrix language @csum

Postby lunatic247 » Thu Dec 23, 2010 2:50 am

Hi everybody,

I'd like to compute the sum of each column of a matrix object by using the matrix function "@csum". The Command Reference tells me that the syntax must be something like: vector nameofvector = @csum(nameofmatrix).
When doing this, I always get the error message "@csum is an illegal or reserved name".
I don't know where my mistake is. When using other commands like "@cmean" or "@cmax" I do not get any mistakes and EViews does what it should.

I know that I could compute the sums of each column by hand by telling EViews to sum up the elements of each colum but this would be somewhat inconvenient.

Thanks for your comments.

P.S.: I am working with EViews Version 6.

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

Re: Matrix language @csum

Postby EViews Gareth » Thu Dec 23, 2010 8:51 am

Make sure your copy of EViews 6 is up to date:
http://eviews.com/download/download.html


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests