Confidence band of Bayesian IRF (SW2007)

Dear Dynare forum,

I ran Smets and Wouters (2007) model using their data obtained from AER website. The posterior estimation results were nice but the bayesian irf looked rather strange, especially the confidence band, (1) sometimes there is no band, just the upper bound, and sometimes the band showed white area, instead of normal grey color; (2) the graph drew horizontal line, but not at (0,0).

The command used is:

Dynare version 4.3.3 is used.

Has anyone encountered similar problems before? Any idea on what’s wrong or what I can do to make the irf looks normal, like additional options?
Thank you so much!

ew.pdf (18.6 KB)
em.pdf (18.7 KB)

I have carried out many attempts like increasing the number of mh_replic or using another country’s data, but Dynare kept delivering the strange-looking confidence bands for the Bayesian IRF.

I would really appreciate if someone would be so kind to comment or share your ideas.Please, any kind of suggestions/insights are highly valuable and welcome.

Thank you so much in advance!

This is a bug. Please upgrade to Dynare 4.4.3 and then replace the original Dynare\matlab-folder file with the attached one.
PosteriorIRF_core2.m (6.85 KB)

Dear Professor Pfeifer,

Thank you so much for your reply! It’s very very kind of you!!!

The strange confidence band has kept me and my advisor confused for quite a while. If it is a bug, then I am relieved now. I will upgrade the new version of Dynare and do according to your instruction.

Please have a pleasant day, sir!