Page 1 of 1

Horizontal vs Vertical sum?

Posted: Thu Feb 03, 2011 11:01 am
by Rosa.hh
Hi, I recently started using eviews (v7) and I have a very basic question.

I am using time series and I want to generate the sum of a number of variables. Why do I get different results when using the @sum command (I get the wrong result) than when typing the whole sum equation (e.i: A=b+c+d) when I do manage to get the correct sum.

What I want is to generate a horizontal sum (summing rows). Anyone knows why the @sum command is generating something different than what I want?

These are the two codes I'm using:

series comp_ind= @sum(stand_indep{!j}) .......[this is not generating the correct sum]

series comp_ind2=stand_indep1+stand_indep2+stand_indep3+stand_indep4+stand_indep5+stand_indep6+stand_indep7 ........[does generate the correct sum]

Thanks!

Re: Horizontal vs Vertical sum?

Posted: Thu Feb 03, 2011 11:02 am
by EViews Gareth
Put the variables into a group, then use the @rsum command:

Re: Horizontal vs Vertical sum?

Posted: Thu Feb 03, 2011 11:19 am
by Rosa.hh
Thank you very much Gareth!