Page 1 of 1

for loop @seas(!i)

Posted: Fri Apr 22, 2016 12:53 pm
by ecofin
hi
when i run this code i get @seas(12) in the group, how can get all 12 seasonal by loop in the group?

Code: Select all

for !i=1 to 12 group dum @seas(!i) next

Re: for loop @seas(!i)

Posted: Fri Apr 22, 2016 1:15 pm
by EViews Gareth
Well the obvious choice is

Code: Select all

group dum @expand(@month)
But if you really want to use @seas

Code: Select all

group dum for !i=1 to 12 dum.add @seas(!i) next

Re: for loop @seas(!i)

Posted: Fri Apr 22, 2016 1:34 pm
by ecofin
thank you very much :D .