Page 1 of 1

Bayesian irfs

PostPosted: Wed May 13, 2015 12:38 pm
by draoul
Hi all,

I have estimated a DSGE model. After estimation, I compute the bayesian irfs. However, in the graphs, there appear strange horizonal lines in addition to the irfs and the grey shaded areas are not plotted properly (see the .pdf file in the attatchment).

I am working with Matlab2015a and Dynare 4.4.3.

The strange thing is that when I run the code on my old machine with Matlab2012b, I do not have this problem. Might this be a problem with Matlab2015?

Thanks for your help in advance!

Best,

Raoul

Re: Bayesian irfs

PostPosted: Wed May 13, 2015 12:57 pm
by jpfeifer

Re: Bayesian irfs

PostPosted: Wed May 13, 2015 1:20 pm
by draoul
Dear Johannes,

Thanks a lot for your quick reply. Your solution worked out for me!

Many thanks!

Best,

Raoul

Re: Bayesian irfs

PostPosted: Mon Jun 15, 2015 1:22 pm
by draoul
Hi all,

I am experiencing the same bug when estimating a Bayesian VAR and computing IRFs using the command bvar_irf() (see pdf in the attachment).

Is there also a fix for the bvar_irf command similar to the fix available for the bayesian_irf option (PosteriorIRF_core2.m)?

Thanks a lot for your help in advance!

Best,

Raoul

Re: Bayesian irfs

PostPosted: Mon Jun 15, 2015 2:43 pm
by jpfeifer
The attached file solves the issue.

Re: Bayesian irfs

PostPosted: Mon Jun 15, 2015 3:54 pm
by draoul
Dear Johannes,

Thanks a lot for your fast reply.

This code solves the issue with the plotting.

Thanks again for your help! It is highly appreciated.

Best,

Raoul

Re: Bayesian irfs

PostPosted: Mon Jun 15, 2015 5:28 pm
by jpfeifer
Dear Raoul,

I have updated the previous posts to reflect the mistake you pointed out (I erroneously based the bugfix on the unstable version instead of 4.4.3). It should now work with the attached file.

Re: Bayesian irfs

PostPosted: Mon Jun 15, 2015 5:50 pm
by draoul
Okay, great!