I am trying to replicate the DSGE model by Del Negro et al. (2015): “Inflation in the Great Recession and New Keynesian Models” using Dynare. The model is basically a SW07 model with financial frictions and a time-varying Inflation target. The Matlab model-code is published on the website (see also attached the file containing the equilibrium conditions). The model is very similar to the one used (and published) by the Fed New York (github.com/FRBNY-DSGE/DSGE-2015-Apr).

Unfortunately, my code is not running because the BK-condition is not satisfied (i.e. I have one forward-looking variable too much). This usually speeks for a timing problem but I cannot find the mistake. I have as many forward-looking variables as the authors have in their Matlab-code (where the model is in Sims form). Some time ago, other Dynare-users published similar questions in this forum (Replication of FRBNY DSGE model (Del Negro et al. 2013)) but did not post whether they managed to replicate the model in Dynare.

If anybody has already successfully replicated one of the above-mentioned models in Dynare I would be so grateful if she/he would share the respective file/equations with me. Or can somebody give me a hint where a problem in my code could lie?

[quote]ERROR: If the model is declared linear the second derivatives must be equal to zero.
The following equations had non-zero second derivatives:
* Eq # 11[/quote]

Thank you so much for your hint!!! This brought me to the respective equation and I indeed found a small mistake in that eqaution which solved the entire problem.

Just one last question: How did you get this very detailed ERROR-message (i.e. the one whichn pointed you to look at equation #11)?

Yes, sure…attached you can find the working version of my file which runs now and also yields reasonable impulse responses (also very similar to the ones of the model by De Graeve (2008): “The external finance premium and the macroeconomy: US post-WWII evidence”, which is quite similar to the one by Del Negro et al. (2015)).

Thanks for your post and mod file. I am having similar issues with my code. In fact, I was getting an error that there is no stable equilibrium; then I simplified the steady state computation a bit by assuming pi* = 1 and gamma = 0, and now I am getting that there is indeterminacy. I am unable to figure out the source of my error though.

Would you mind sharing your steady state computation files so that I can simplify your code to make it the same as mine (for example, by setting Bigphi = 1, sigma_c = 1 etc.) and use it to debug my own code?