Residuals of the static equations: 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.

Residuals of the static equations: NaN

Postby Aldo » Sun Mar 05, 2017 2:57 pm

Dear all,
I am getting two NaN when I run my .mod.

Equation number 1 : NaN
Equation number 2 : NaN
Equation number 3 : 0
Equation number 4 : 0
Equation number 5 : 0
...

Please could you help me?

Thanks

Aldo
Attachments
Darraq_Please_codes_and_data.rar
(11.89 KiB) Downloaded 72 times
Aldo
 
Posts: 56
Joined: Fri Aug 07, 2015 4:47 pm

Re: Residuals of the static equations: NaN

Postby jpfeifer » Sun Mar 05, 2017 5:44 pm

You have
Code: Select all
sig_c=0

so that in
Code: Select all
 WELFARESS = (XSS^(1-sig_c)/(1-sig_c) - LC_BAR*LCSS^(1+sig_l_C)/(1+sig_l_C)- LD_BAR*(1-LCSS)^(1+sig_l_D)/(1+sig_l_D))/(1-betta);

you are dividing by 0. Put differently, the log utility case is not really nested in your code.
------------
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: Residuals of the static equations: NaN

Postby Aldo » Sun Mar 05, 2017 11:48 pm

Thanks a lot dear jpfeifer.

Greetings

Aldo
Aldo
 
Posts: 56
Joined: Fri Aug 07, 2015 4:47 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests