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 diatrochoi » Wed Dec 03, 2014 3:26 am

I am working on my Econ Honor Thesis. I am having a problem with these four variables: wphat, lphat, wdhat, and ldhat. (this is a slimmed down version of just the equations that I am having difficulty with, on there own they have no economic significance.)

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
thesis_endohousing.mod
(2.33 KiB) Downloaded 57 times
diatrochoi
 
Posts: 14
Joined: Tue Jul 08, 2014 10:45 pm

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

Postby jpfeifer » Wed Dec 03, 2014 10:21 am

You need an initval-block. Without it, Dynare takes all intial values to be 0. But equation 4 is
Code: Select all
ldhat=(.64-1)/wdhat;                //%patient labor demand development

If wdhat is 0, you are dividing by 0.
------------
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 10 guests