Hi!
I would like to know, how can i check if an estimation was succesfull?
For example, look at the following sample code:
equation eq01
eq01.arch(4,5,tdist,integrated) series_of_returns
The above gives me an error (log of non positive number), so I want to handle this in an if statement:
if (eq01.arch(4,5) series_of_returns)) then
statusline "OK"
endif
This gives me a syntax error, so how can i handle properly if an estimate was failure?
Thanks
check if an estimation was succesfull
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: check if an estimation was succesfull
You can use combinations of these commands (all listed in the Command Reference):
A simple example would be:
Code: Select all
setmaxerrs
@errorcount
@lasterrnum
@lasterrstr
Code: Select all
setmaxerrs 2
eq01.arch(4,5) series_of_returns
if @errorcount = 0 then
statusline "OK"
endif
Re: check if an estimation was succesfull
Thank you very much!
It helped me a lot!
It helped me a lot!
Who is online
Users browsing this forum: No registered users and 1 guest
