An element of the Jacobian is not finite or NaN

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.

An element of the Jacobian is not finite or NaN

Postby svenson » Mon May 29, 2017 5:40 am

I am working on Econ thesis about the subsidy for the consumption. There are some problem with initial-block as the steady point ,but it always makes Jacobian contain inf or NAN. :?
I have attached the code below. I am uncertain how to move forward following the error codes I am getting. Any help would be greatly appreciated.

Thank you!
Attachments
subsidy.mod
(2.51 KiB) Downloaded 61 times
svenson
 
Posts: 2
Joined: Mon May 29, 2017 5:23 am

Re: An element of the Jacobian is not finite or NaN

Postby jpfeifer » Mon May 29, 2017 7:32 am

Execute the computations before the model block using F9 in Matlab. You will see that ls=0, which cannot be
------------
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: An element of the Jacobian is not finite or NaN

Postby svenson » Tue May 30, 2017 12:29 am

jpfeifer wrote:Execute the computations before the model block using F9 in Matlab. You will see that ls=0, which cannot be



Thank you! Your advise is very usefull.I get it,but If i wanna attach this research ,Should i rebuild the model or adjust the parameter? Any help would be greatly appreciated.
svenson
 
Posts: 2
Joined: Mon May 29, 2017 5:23 am

Re: An element of the Jacobian is not finite or NaN

Postby jpfeifer » Wed May 31, 2017 3:27 pm

The model may be fine, but the starting values you compute are wrong/invalid. You need to adjust those
------------
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 6 guests