How to sum a list of series?

For questions regarding programming in the EViews programming language.

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

ecardamone
Posts: 40
Joined: Wed Sep 17, 2014 12:23 pm

How to sum a list of series?

Postby ecardamone » Tue Dec 22, 2015 1:23 pm

Hi, I have a list of series that I create from the loop below. Is there an easy way to create two new series, one that is the sum of the first 11 series (gomd321.a through go339.a) and the other one that is the sum of the other 8 series (go311a2.a through go326.a)?

Code: Select all

for %x md321 md327 331 332 333 334 335 336m 3364to9 337 339 311a2 313a4 315a6 322 323 324 325 326 fetch go{%x}.a next
Thanks for help!

startz
Non-normality and collinearity are NOT problems!
Posts: 3796
Joined: Wed Sep 17, 2008 2:25 pm

Re: How to sum a list of series?

Postby startz » Tue Dec 22, 2015 1:40 pm

Create groups and use @rsum.

ecardamone
Posts: 40
Joined: Wed Sep 17, 2014 12:23 pm

Re: How to sum a list of series?

Postby ecardamone » Tue Dec 22, 2015 1:56 pm

Thank you!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests