Replication of NK_baseline.mod for Bayesian estimation

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.

Replication of NK_baseline.mod for Bayesian estimation

Postby Petryk » Fri Jan 30, 2015 2:32 pm

Dear Dynare users,

Does anybody have a working version of NK_baseline.mod for Bayesian estimation? I was trying to replicate it using simulated series but there were some issues with parameter 'alppha' in the posterior mode check. I did not observe these issues when I use simulated series in other examples.

Thank you!
Petryk
 
Posts: 4
Joined: Mon Jan 19, 2015 2:09 pm

Re: Replication of NK_baseline.mod for Bayesian estimation

Postby costa » Sat Jan 31, 2015 10:30 pm

Some time ago I wrote this code. Hope it helps.
Attachments
cap3gali_adonias.mod
(1.44 KiB) Downloaded 66 times
costa
 
Posts: 47
Joined: Thu Nov 14, 2013 8:09 pm

Re: Replication of NK_baseline.mod for Bayesian estimation

Postby jpfeifer » Sun Feb 01, 2015 7:57 am

@Petryk: Could you please post or send the problematic files so I can take a look at them.
------------
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: Replication of NK_baseline.mod for Bayesian estimation

Postby Petryk » Wed Feb 25, 2015 2:37 pm

Dear Dynare experts,

Attached is a working version of NK_baseline.mod modified to replicate the estimation part in Fernández-Villaverde (2010).

While the code runs it shows strange mode checks for ‘alppha’ and some other parameters.

I suspect the problem in the definitions of shocks on line 201-205 but not sure how to fix it.

Also, the definition of shocks in focs has been changed in the original NK_baseline.mod from Fernández-Villaverde and Rubio-Ramírez (2006). To give one example, consider equation (4) in NK_baseline with
‘mu_z(+1)’
compared to ‘z(t)/z(t+1)’ in Fernández-Villaverde and Rubio-Ramírez (2006).

Thank you in advance for help!
Attachments
arti_NK.zip
Data file simulated from the original NK_baseline code. Need to be unzipped because .mat files could not be attached.
(159.96 KiB) Downloaded 55 times
C1NK_baseline_steadystate.m
(3.76 KiB) Downloaded 58 times
C1NK_baseline.mod
(8.57 KiB) Downloaded 58 times
Petryk
 
Posts: 4
Joined: Mon Jan 19, 2015 2:09 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 10 guests