Flow of Control Statement...

For questions regarding programming in the EViews programming language.

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

JUK
Posts: 2
Joined: Thu Aug 18, 2016 7:04 am

Flow of Control Statement...

Postby JUK » Thu Aug 18, 2016 7:15 am

Dear Sirs/Madams

I'm sure that this query will be solved very quickly, as undoubtably I am doing something very simple incorrectly. Nevertheless, I can't find a solution so I am appealing to the board.

I am attempting to calculate multi-step ahead forecasts from my VAR model and then calculate the RMSEs. As I wasn't sure how to do this I am following the instructions in the following: http://forums.eviews.com/viewtopic.php?f=5&t=9442

However. Whenever I operate:

for !i=1 to 60+!i

I am told that the 'flow of control statement' has been 'executed from the command line'

Naturally, if I skip this step and move directly to:

smpl @first @first+60+!i

I am informed (correctly, of course) that !i is not defined.


I would be very grateful if someone could offer some advice as to where I am going wrong.

Best wishes

James

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

Re: Flow of Control Statement...

Postby startz » Thu Aug 18, 2016 7:20 am

Put your commands in a program window rather than the command line.

JUK
Posts: 2
Joined: Thu Aug 18, 2016 7:04 am

Re: Flow of Control Statement...

Postby JUK » Thu Aug 18, 2016 8:46 am

Thank you Startz.

I knew it would be a simple case of my inability to use the software!!

Got it now,

Thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests