for loop @seas(!i)

For questions regarding programming in the EViews programming language.

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

ecofin
Posts: 182
Joined: Fri May 10, 2013 11:24 am

for loop @seas(!i)

Postby ecofin » Fri Apr 22, 2016 12:53 pm

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

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

Re: for loop @seas(!i)

Postby EViews Gareth » Fri Apr 22, 2016 1:15 pm

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

ecofin
Posts: 182
Joined: Fri May 10, 2013 11:24 am

Re: for loop @seas(!i)

Postby ecofin » Fri Apr 22, 2016 1:34 pm

thank you very much :D .


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests