When using the .forc command for bayesian vars, the forecasts are generated, but then the equation appears to 'reset' (?) itself with 0.0000 for all coefficients and standard errors in the VAR object. I've tried this with a couple of different datasets, so it isn't a function of that (for whatever reason). When you re-estimate the BVAR, all coefficients and standard errors 're-appear'....
Is this related in some way to the .bvar(prior=NW) crash bug from earlier this week and it will therefore be fixed upcoming patch?
Best wishes
Another (?) BVAR .forc bug
Moderators: EViews Gareth, EViews Moderator
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Another (?) BVAR .forc bug
The .forc command?
-
CharlieEVIEWS
- Posts: 202
- Joined: Tue Jul 17, 2012 9:47 am
Re: Another (?) BVAR .forc bug
Apologies! I meant .fcast from the VAR forecast add-in!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Another (?) BVAR .forc bug
Could you provide an example workfile, I cannot replicate this.
-
CharlieEVIEWS
- Posts: 202
- Joined: Tue Jul 17, 2012 9:47 am
Re: Another (?) BVAR .forc bug
Certainly! I didnt bother in the first instance as it didnt appear to be data dependant.
I have also realised that as a consequence of this, forecasts for all variables after the first variable are also subsequently 0, for the entire forecast sample (so the 'resetting' appears to occur after the forecast for the first endogenous variable is created)
I will however be the first to admit that my knowledge of bvar theory is fairly flimsy!
Best wishes, and thanks for your time
I have also realised that as a consequence of this, forecasts for all variables after the first variable are also subsequently 0, for the entire forecast sample (so the 'resetting' appears to occur after the forecast for the first endogenous variable is created)
I will however be the first to admit that my knowledge of bvar theory is fairly flimsy!
Best wishes, and thanks for your time
- Attachments
-
- bvar fcast bug test.WF1
- (22.87 KiB) Downloaded 314 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Another (?) BVAR .forc bug
How do you replicate the bug?
If I open up the workfile, I can see that the VAR test is a little screwed up, but how did it get to that state? If I re-estimate it, it looks fine. If I then run the VAR forecast add-in on it, it appears to work fine.
If I open up the workfile, I can see that the VAR test is a little screwed up, but how did it get to that state? If I re-estimate it, it looks fine. If I then run the VAR forecast add-in on it, it appears to work fine.
-
CharlieEVIEWS
- Posts: 202
- Joined: Tue Jul 17, 2012 9:47 am
Re: Another (?) BVAR .forc bug
I believe this code will show the bug (for my build? at least):
The problem (if indeed it is one) is that y_f (and z_f) has zeros for the forecast sample, and that the object bvartest is 'a little screwed up' as you said before. The forecasts for x_f have appeared to generate correctly however, and we can recover the coefficient estimates through simply estimating the equation again.
Apologies if I am being extremely dense somewhere!
Code: Select all
wfcreate q 1990 2010
series y = nrnd
series x = nrnd
series z = nrnd
var bvartest
smpl 1990q1 2004q4
bvartest.bvar(prior=sznw) 1 2 x y z
smpl 2005q1 2008q4
bvartest.fcast _f
smpl @all
Apologies if I am being extremely dense somewhere!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Another (?) BVAR .forc bug
Thanks. That looks like a bug.
Who is online
Users browsing this forum: No registered users and 1 guest
