STEADY: The Jacobian contains Inf 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.

STEADY: The Jacobian contains Inf or NaN?

Postby zhuzixiang » Sun Oct 12, 2014 4:07 pm

I simplified the agtrend.mod code written by Sastien Villemot and Johannes Pfeifer and add three shock including the preference shock, interest rate shock and demand shock similar as financial friction model. But I got this result,

STEADY: The Jacobian contains Inf or NaN. The problem arises from:

STEADY: Derivative of Equation 2 with respect to Variable c (initial value of c: 0.551597)
STEADY: Derivative of Equation 2 with respect to Variable l (initial value of l: 0.448813)
STEADY: Derivative of Equation 2 with respect to Variable v (initial value of v: 0)

STEADY: The problem most often occurs, because a variable with
STEADY: exponent smaller than 1 has been initialized to 0. Taking the derivative
STEADY: and evaluating it at the steady state then results in a division by 0.

Could anyone tell me why?
Thanks
Attachments
three2.mod
(2.85 KiB) Downloaded 81 times
zhuzixiang
 
Posts: 12
Joined: Sat Sep 06, 2014 3:36 am

Re: STEADY: The Jacobian contains Inf or NaN?

Postby jpfeifer » Mon Oct 13, 2014 5:06 am

You are having the pathological case with sigma=1, i.e. log utility. This results in 0 divided by 0 in the initval for u. If you want log utility, specify it this way.
------------
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 13 guests