Blanchard-Kahn flag stored?

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.

Blanchard-Kahn flag stored?

Postby paljenczy » Sun Jul 08, 2012 11:42 am

Dear All,

I face the following problem. I am trying to implement a random walk Metropolis Hastings algorithm where
for each new draw of parameters the model is solved by Dynare. However, when for the proposed set of parameters
Blanchard-Kahn conditions are not satisfied, the whole procedure stops. Ideally, I would like to implement that
whenever BK conditions are not satisfied, the proposed parameters are not chosen. Do you know a way
to do this? For example, how could I let Dynare check BK and return the flag? Thank you for your help in advance.
paljenczy
 
Posts: 2
Joined: Sun Jul 08, 2012 11:37 am

Re: Blanchard-Kahn flag stored?

Postby jpfeifer » Sun Jul 08, 2012 8:27 pm

Use Matlab's try-catch routine.
------------
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: Blanchard-Kahn flag stored?

Postby paljenczy » Mon Jul 09, 2012 7:49 am

Thank you for your help.
paljenczy
 
Posts: 2
Joined: Sun Jul 08, 2012 11:37 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests