Bayesian VAR

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

EViews Esther
EViews Developer
Posts: 149
Joined: Fri Sep 03, 2010 7:57 am

Bayesian VAR

Postby EViews Esther » Thu Nov 11, 2010 10:31 am

This thread is about the new version of BVAR add-in that perform Bayesian VAR estimation based on analytic results.

[Three ways the new 'BVAR' can be different from the old 'BVAR'] (2010/11/11)
  • The new version does not require R package *MSBVAR* installation.
  • Unlike the previous BVAR which provides the Sims-Zha (IER, 1998) priors only, the new BVAR provides the 5 different prior;
    Normal-Wishart (default), Normal-flat (Sims-Zha priors), conjugate Normal-Wishart, Minnesota/Litterman (Koop-Korobilis; 2009), and Diff use priors.
  • Added marginal likelihood computation.

[Change log]
  • 2010/11/30 Added model object option (command option "m=model name"; e.g. bvar(m=model) y x1 x2 x3)
  • 2011/01/10 Corrected IRFs
  • 2011/01/20 Make "the list of endogenous variables" box bigger
  • 2011/03/22 Updated command lines
      E.g. bvar 2 gdp interest inflation
      E.g. bvar(prior=1) 2 gdp interest inflation
      Note: the first argument is the number of lags!
  • 2012/02/23 Updated the options for the Ko-Ko priors
      Selection for the mean and cov of coefficient parameters (BETA ~ N(B0*iota, V0*Identity))
      Selection for the degrees of freedom and scale matrix of residual parameters (SIGMA ~ W(NU0,S0*identity)).
      Please note that B0,V0, NU0 and S0 are all scalars.
  • 2012/03/23 Edited documentation
  • 2012/05/24 Added a new error message
Last edited by EViews Esther on Thu Jan 20, 2011 5:58 pm, edited 15 times in total.

donihue
Posts: 137
Joined: Wed Oct 07, 2009 8:51 am

Re: Bayesian VAR

Postby donihue » Fri Nov 12, 2010 3:07 am

Once again, let me thank you for this superb addition to EViews. Already, the previous version using the R package was of great help; this one is even better!

At the risk of appearing ungrateful for this exceptionally helpful new BVAR implementation, might I suggest that the next step, at least for those of us who work with emerging-country central banks, would be to expand the set of priors to include DSGE-generated priors, as in Del Negro, M., and F. Schorfheide (2004), "Priors from General Equilibrium Models for VARs", International Economic Review, 45(2), 643–673. This has been implemented in Dynare (see Adjemian, S., Darracq-Pariès, M. and S. Moyen (2008), "Towards a monetary policy evaluation framework", ECB Working paper 942) and it would be a major step forward if it could be done in EViews as well.

Again, congratulations and thanks for a major improvement to EViews.

Regards
Donihue

donihue
Posts: 137
Joined: Wed Oct 07, 2009 8:51 am

Re: Bayesian VAR

Postby donihue » Fri Nov 19, 2010 12:02 pm

Hello Esther/Gareth,

Again, many thanks for the new BVAR add-in, which is a huge advance.

Could I request a small improvement? The IRF graphs display is too small to read text characters when several variables are used (as is typical for a BVAR related to a DSGE), even when the graph is "extracted" and displayed full-size. Would it be possible to have an option to show the IRF graphs by equation? (This would also deal with a small problem in the current version wherein the IRF graphs do not display the name of the response variable ("Response of .. to Y" has a blank space for ..))

Many thanks and regards
Donihue

donihue
Posts: 137
Joined: Wed Oct 07, 2009 8:51 am

Re: Bayesian VAR

Postby donihue » Sat Nov 20, 2010 8:25 am

Esther/Gareth,

Using the excellent new BVAR add-in leads me to another request, perhaps rather harder to incorporate: would it be possible to have Proc tab on the add-in results function as does that for the ordinary VAR object?
In particular, would it be possible to set it up to create Systems and Models directly from the BVAR results? These options do not seem to be present in the current implementation, and they would greatly facilitate post-estimation life!

Regards
Donihue

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

Bayesian VAR

Postby EViews Gareth » Sat Nov 20, 2010 10:39 am

That isn't possible.
Follow us on Twitter @IHSEViews

donihue
Posts: 137
Joined: Wed Oct 07, 2009 8:51 am

Re: Bayesian VAR

Postby donihue » Mon Nov 22, 2010 11:40 am

Gareth,

Looking into the BVAR and associated programmes, I see that one can extract the matrix of coefficients "cn" and the matrix of standard errors "covn" by simply not deleting them at the end of the BVAR programme (line 520). From these, it seems (to a naive non-programmer!) that one could build up a simulation model à la the standard VAR command. Undoubtedly it is more complicated than this ...

Regards
Donihue

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

Re: Bayesian VAR

Postby EViews Gareth » Mon Nov 22, 2010 11:49 am

I'm not sure I understand the question there.
Follow us on Twitter @IHSEViews

donihue
Posts: 137
Joined: Wed Oct 07, 2009 8:51 am

Re: Bayesian VAR

Postby donihue » Mon Nov 22, 2010 2:25 pm

Gareth,

Sorry if I wasn't clear: this was in reference to my earlier query on this topic:
In particular, would it be possible to set it up to create Systems and Models directly from the BVAR results? These options do not seem to be present in the current implementation, and they would greatly facilitate post-estimation life!

to which you replied
That isn't possible


Not being a programmer, I wondered if the fact that the necessary matrices (cn and covn) can be made available would make it possible, albeit with some further programming. I guess the operative word in my earlier post was "directly".

Regards
Donihue

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

Re: Bayesian VAR

Postby EViews Gareth » Mon Nov 22, 2010 2:29 pm

Yeah, I see what you mean.

The nature of Add-ins are that you cannot add things to the menus, nor do anything once the add-in has executed. Thus it would not be possible to add stuff to the Proc tab. However, I take your broader point. It would be possible to, at the time of estimation, say "estimate this BVAR, and please make a model from the results". I have Esther looking into this possibility at the moment.

A system cannot be done, since a system will re-estimate the VAR. You cannot create a system object and specify the coefficient values.
Follow us on Twitter @IHSEViews

donihue
Posts: 137
Joined: Wed Oct 07, 2009 8:51 am

Re: Bayesian VAR

Postby donihue » Tue Nov 23, 2010 5:09 am

Many thanks, Gareth. The "model from results" option would be very helpful indeed.

Regards
Donihue

EViews Esther
EViews Developer
Posts: 149
Joined: Fri Sep 03, 2010 7:57 am

BVAR Model Object

Postby EViews Esther » Tue Nov 30, 2010 4:59 pm

As requested, the "model from the results" option is added.

Upon running the add-in from the menus, a dialog which contains a new "Model object" option will appear.
Note that the "Model Object (optional)" box lets you specify the name of the model object.

donihue
Posts: 137
Joined: Wed Oct 07, 2009 8:51 am

Re: Bayesian VAR

Postby donihue » Wed Dec 01, 2010 1:29 am

Wonderful! Thank you, Esther. I have tested the new "model object" option and it works perfectly.

I am also grateful to you for correcting the display issues mentioned in other messages; both tables and graphs of IRFs now display names correctly. There remains one small issue with display: as I mentioned in an earlier post
The IRF graphs display is too small to read text characters when several variables are used. Would it be possible to have an option to show the IRF graphs by equation?
This would also be useful for publications, where one would like to extract just certain IRFs.

And whilst still on this subject (sorry!): is there any chance of having the IRF graphs display a +/- 1 (and/or 2) std. error band?

Many thanks again.
Regards
Donihue

EViews Esther
EViews Developer
Posts: 149
Joined: Fri Sep 03, 2010 7:57 am

Re: Bayesian VAR

Postby EViews Esther » Wed Dec 01, 2010 10:11 am

Dear Donihue,

The IRF graphs display is too small to read text characters when several variables are used. Would it be possible to have an option to show the IRF graphs by equation?

The smart EViews gives you an option, "Extract selected graph", by right-clicking on the IRF graphs.

And whilst still on this subject (sorry!): is there any chance of having the IRF graphs display a +/- 1 (and/or 2) std. error band?

I will put it on my to-do list.

Best,
Esther

donihue
Posts: 137
Joined: Wed Oct 07, 2009 8:51 am

Re: Bayesian VAR

Postby donihue » Thu Dec 02, 2010 4:05 am

Many thanks Esther for the std error to-do listing.
Regarding the graphs, I had previously extracted the complete IRF graph, using the very "smart" extract option, but had not seen that I could then also extract the individual graphs. Thank you for that tip!
Regards
Donihue

Sanke Charmer
Posts: 3
Joined: Sun Nov 07, 2010 2:10 pm

Re: Bayesian VAR

Postby Sanke Charmer » Thu Jan 20, 2011 8:37 am

Hello Eviews people.

It seems to be a little and unimportant mistake in the BVAR add-inn: on the "Koop-Korobilis Minnesota" options it says: "a2 - Relative CORSS variable weight". I guess it should be "CROSS" (?)

Thanks for always solving my questions.


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 1 guest