by Econbee » Tue Dec 03, 2013 3:39 pm
Thanks so much for your kind reply, jpfeifer! The updated steady state file is much more clear and instructive. And my problem is nearly solvable with what the latest version provides.
To better understand the mechanism of Dynare, I have three related follow-up questions:
1. During the search for posterior mode and MH-MCMC, the steady state file will be called every time a new candidate draw is obtained. Suppose a draw is invalid and the check indicator in the steady state file is set to 1. This would stop the steady state function immediately and return to the invoking function. At this time, does Dynare stop with error message or just ignore the previous invalid draw and try another draw? In fact, what we need is the latter one and don't want Dynare to stop. In my own code, this could be simply done with a while loop. But I am not sure how this is done in Dynare?
2. In most .mod files, there is a line "check;" after "steady;". Is this line of "check" solely for checking BK condition for determinacy? Or is it related to the check indicator from the steady-state function?
3. Yesterday, you mentioned that "Dynare always checks for Blanchard Kahn conditions (unstable and indeterminate solutions), existence of steady state, complex steady states, violation or prior bounds and positive definite covariance matrices". When any of these is violated during MCMC or mode search, would Dynare stop immediately or discard the current draw and try another draw? If the latter one, why are there so many error messages in the forum saying that "BK condition not satisfied"? Is that because those are for stochastic simulation based on a given set of parameters instead of estimation?
The questions may look naive to the Dynare experts. But I am just a new beginner and want to transit to Dynare. Again, I really appreciate your time, attention and patience!