A problem in working with "FOR" Loop

For questions regarding programming in the EViews programming language.

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

serkan
Posts: 7
Joined: Mon Dec 24, 2018 8:08 am

Re: A problem in working with "FOR" Loop

Postby serkan » Tue Jan 02, 2024 2:30 am

Hi.

I want to seasonally adjust 45 different series using the Tramoseats method. There is no problem when I do the process one by one. However, when I want to do it in a loop, it gives an error. What could be the reason for this? Am I doing something wrong? Any chance someone can help?

Code: Select all

for !i=1 to 45
   series y_{!i} = real_{!i}_sail
   y_{!i}.tramoseats(opt="seats=2 mq=12 lam=-1 inic=3 idif=3 itrad=iatip=1 aio=0", save="sa") y_{!i}
next


The Error Message: ..... not found on disk in "y_{!i}.TRAMOSEATS(OPT="SEATS=2 MQ=12 LAM=-1 INIC=3 IDIF=3 ITRAD=IATIP=1 AIO=0", SAVE="SA") Y_{!i}" on line 7.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 25 guests