Error using ==> dynare_solve at 60

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.

Error using ==> dynare_solve at 60

Postby cassio » Fri Jun 16, 2017 1:02 am

Good evening.

I'm having trouble finding the steady state of a DSGE model with banks. The following message always appears:

??? Error using ==> dynare_solve at 60
An element of the Jacobian is not finite or NaN.

I am a beginner and would like to know if there are any suggestions?

Thank you
Attachments
model2.mod
Model code
(7.93 KiB) Downloaded 43 times
cassio
 
Posts: 1
Joined: Fri Jun 16, 2017 12:54 am

Re: Error using ==> dynare_solve at 60

Postby jpfeifer » Fri Jun 16, 2017 7:26 am

First of all, only do the exp()-substitution once the model runs. Premature substitutions result in cumbersome code that is hard to debug. For example
Code: Select all
exp(A)      = rhoa*exp(A(-1)) + ee_a;                                                                                //  // (31)
exp(j)      = rhob*exp(j(-1)) + ee_j;                                                                                //  // (32)

has a steady state for e.g. exp(A) of 0, implying that A must be -Inf.

Also
Warning: Some of the parameters have no value (tal, mu, kappa, rhoc) when using steady. If these
parameters are not initialized in a steadystate file or a steady_state_model-block, Dynare may not be
able to solve the model...
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests