Page 1 of 1

Using the command window

Posted: Tue Jun 29, 2010 11:50 pm
by LaurenF
Hi

I am new to eViews and to familiarise myself with the programme I am working through some of the examples in the User Guide. :?
In the stepwise-regression example, a for-loop is used.

for !i=1 to 40
series x!i=nrnd
%name="x"+@str(!i)
xs.add {%name}
next


However when I try run the for-loop , the error message "Flow of control statement executed from the command line" or "X!I is an illegal or reserved name" if I enter on the second line.

I have programme before however I am not sure where I am going wrong with this simple for-loop. Is there another way of doing this.
Thanks :D

Using the command window

Posted: Wed Jun 30, 2010 12:25 am
by EViews Gareth
You need to put your code into an EViews program and then run it. Click on File->New->Program

Re: Using the command window

Posted: Wed Jun 30, 2010 1:28 am
by LaurenF
Thx