Confidence band of Bayesian IRF (SW2007)

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Confidence band of Bayesian IRF (SW2007)

Postby dk19 » Mon May 04, 2015 10:27 am

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:
estimation(datafile=usmodel_data,mode_compute=6,first_obs=71,mh_replic=20000,mh_nblocks=2,mh_jscale=0.20,mh_drop=0.2,bayesian_irf);

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!

Best,
DK19
Attachments
ew.pdf
(18.61 KiB) Downloaded 355 times
em.pdf
(18.68 KiB) Downloaded 354 times
dk19
 
Posts: 3
Joined: Mon May 04, 2015 9:41 am

Re: Confidence band of Bayesian IRF (SW2007)

Postby dk19 » Tue May 05, 2015 9:13 am

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!
DK19
dk19
 
Posts: 3
Joined: Mon May 04, 2015 9:41 am

Re: Confidence band of Bayesian IRF (SW2007)

Postby jpfeifer » Tue May 05, 2015 2:02 pm

This is a bug. Please upgrade to Dynare 4.4.3 and then replace the original Dynare\matlab-folder file with the attached one.
Attachments
PosteriorIRF_core2.m
(6.85 KiB) Downloaded 289 times
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Confidence band of Bayesian IRF (SW2007)

Postby dk19 » Tue May 05, 2015 3:26 pm

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!
DK19
dk19
 
Posts: 3
Joined: Mon May 04, 2015 9:41 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests