Using the command window
Posted: Tue Jun 29, 2010 11:50 pm
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
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