Hi
I am doing a grid search using a for loop. In each iteration I estimate an equation. For some iterations the estimation does not work. How can I tell EViews to exit the loop when the error occurs, rather than the program stopping?
I am using EViews 12.
Thanks
Tim
Error Handling
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
Re: Error Handling
Look up setmaxerrs and @errorcount
Re: Error Handling
Hi Gareth
Thanks. I would prefer to get the program to exit the loop, as if estimation fails once it must fail for all of the subsequent iterations, and they don't need to be tried as would happen with those commands. Is that possible?
tim
Thanks. I would prefer to get the program to exit the loop, as if estimation fails once it must fail for all of the subsequent iterations, and they don't need to be tried as would happen with those commands. Is that possible?
tim
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Error Handling
Exitloop is the command to exit a loop
Who is online
Users browsing this forum: No registered users and 1 guest
