BVAR not launching spools?

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

Gloria
Posts: 9
Joined: Sat Dec 01, 2012 1:20 am

BVAR not launching spools?

Postby Gloria » Sun Dec 02, 2012 1:02 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13317
Joined: Tue Sep 16, 2008 5:38 pm

Re: BVAR not launching spools?

Postby EViews Gareth » Sun Dec 02, 2012 8:02 am

Modify the BVAR Add-in code so that it doesn't show the spool at the end.
Follow us on Twitter @IHSEViews

Gloria
Posts: 9
Joined: Sat Dec 01, 2012 1:20 am

Re: BVAR not launching spools?

Postby Gloria » Mon Dec 03, 2012 4:10 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13317
Joined: Tue Sep 16, 2008 5:38 pm

Re: BVAR not launching spools?

Postby EViews Gareth » Mon Dec 03, 2012 7:41 am

Somewhere thee is probably a line saying "show" the spool. Delete that line.
Follow us on Twitter @IHSEViews


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 31 guests