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
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Using the command window
You need to put your code into an EViews program and then run it. Click on File->New->Program
Who is online
Users browsing this forum: No registered users and 2 guests
