Hello,
I am trying to estimate !i BVAR's, which create !i models for forecasting. When I do this with a VAR solved by LS (option A below) there is no problem. However, when I run the program with the BVAR (option B below), the program stops because too many spools are open. Is there any possibility not to launch the spools or close them within the program?
(A)
'for !i=1 to @dtoo(%finsoft)-@dtoo(%startoos)+1
'SMPL %startestim %endestim
'var var01_!i
'var01_!i.ls 1 6 series1_!i series2_!i series3_!i
'next
(B)
for !i=1 to @dtoo(%finsoft)-@dtoo(%startoos)+1
SMPL %startestim %endestim
BVAR(m=VAR1_!i) 6 series1_!i series2_!i series_!i
next
'***FORECAST MODEL
for !i=1 to @dtoo(%finsoft)-@dtoo(%startoos)+1
MODEL VAR1_!i 'SOFT MODEL 'only for LS
VAR1_!i.APPEND :VAR01_!i 'only for LS
SMPL %startoos+!i %startoos+!i+11
var1_!i.exclude(actexist=t)
VAR1_!i.SOLVE(s=d)
NEXT
Thanks,
Gloria
BVAR not launching spools?
Moderators: EViews Gareth, EViews Moderator, EViews Esther
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- Joined: Tue Sep 16, 2008 5:38 pm
Re: BVAR not launching spools?
Modify the BVAR Add-in code so that it doesn't show the spool at the end.
Follow us on Twitter @IHSEViews
Re: BVAR not launching spools?
Thanks, it worked. I added the comand "close {%sn} at the end of the BVAR.prg. However it opens and closes all the spools, which seems to consume time. Is there another way to tell the program not to open the spools or to run it in a quite modus?
Thanks!
Gloria
Thanks!
Gloria
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- Joined: Tue Sep 16, 2008 5:38 pm
Re: BVAR not launching spools?
Somewhere thee is probably a line saying "show" the spool. Delete that line.
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 31 guests