The steady state contains NaN or Inf

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.

The steady state contains NaN or Inf

Postby Mandy » Wed May 21, 2014 1:23 pm

Dear all,
I am a greenhand in practicing dynare. I have read some posts and found similar questions, however, I still cound't solve my problem :(
so my apologies if this has been dealt with already. Please help me.

I got an error message which is showing like:

Warning: Some of the parameters have no value (pai_ss, adj_B_ss, rb_ss, rd_ss, r_ss,
Rb_ss, Kb_B_ss, D_B_ss, jb_Kb_ss, Kb_k_ss, adj_k_ss, T_k_ss, G_B_ss, T_B_ss, y_B_ss)
when using steady. If these parameters are not initialized in a steadystate file, Dynare
may not be able to solve the model...
> In test_for_deep_parameters_calibration at 46
In steady at 33
In command20140521 at 514
In dynare at 180
STEADY: numerical initial values or parameters incompatible with the following equations
3 7 12 14 15 18 19 20 21 27 30

Check whether your model in truly linear




Residuals of the static equations:

Equation number 1 : NaN
Equation number 2 : NaN
Equation number 3 : NaN
Equation number 4 : NaN
Equation number 5 : NaN
Equation number 6 : NaN
Equation number 7 : NaN
Equation number 8 : NaN
Equation number 9 : NaN
Equation number 10 : 0
Equation number 11 : NaN
Equation number 12 : NaN
Equation number 13 : NaN
Equation number 14 : NaN
Equation number 15 : NaN
Equation number 16 : 0
Equation number 17 : NaN
Equation number 18 : NaN
Equation number 19 : NaN
Equation number 20 : NaN
Equation number 21 : NaN
Equation number 22 : NaN
Equation number 23 : NaN
Equation number 24 : NaN
Equation number 25 : NaN
Equation number 26 : NaN
Equation number 27 : NaN
Equation number 28 : 0
Equation number 29 : 0
Equation number 30 : NaN
Equation number 31 : 0
Equation number 32 : NaN
Equation number 33 : NaN
Equation number 34 : 0
Equation number 35 : 0
Equation number 36 : 0
Equation number 37 : 0
Equation number 38 : 0
Equation number 39 : 0


Error using print_info (line 80)
The steady state contains NaN or Inf

Error in steady (line 92)
print_info(info,options_.noprint, options_);

Error in command20140521 (line 514)
steady;

Error in dynare (line 180)
evalin('base',fname) ;

Please help me,thanks a lot!!!!!
Attachments
command20140521.mod
(4.15 KiB) Downloaded 51 times
Mandy
 
Posts: 13
Joined: Wed May 21, 2014 1:02 pm

Re: The steady state contains NaN or Inf

Postby jpfeifer » Wed May 21, 2014 1:32 pm

As it says: if you are not providing numerical values for the parameters
pai_ss, adj_B_ss, rb_ss, rd_ss, r_ss,
Rb_ss, Kb_B_ss, D_B_ss, jb_Kb_ss, Kb_k_ss, adj_k_ss, T_k_ss, G_B_ss, T_B_ss, y_B_ss

Dynare cannot compute the steady state. Your problem is the non-recursive specification of parameters.

In the line
Code: Select all
rd_ss=eps_d/(eps_d-1)*r_ss;
//5
rb_ss=eps_b/(eps_b-1)*Rb_ss;
//6
Rb_ss=r_ss+eta_ss-ka_kb*(Kb_B_ss-vb)^2*Kb_B_ss^2;

you did not set r_ss when rd_ss is computed. Similarly, Rb_ss is the computation of rb_ss is not defined.
------------
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: The steady state contains NaN or Inf

Postby Mandy » Wed May 21, 2014 2:48 pm

Thank you so much!!!

but I still have a question, I have defined "pai_ss" in calibrated parameters part, I let pai_ss equal 1.008. Why it says pai_ss has no value?

Appreciate your help!!! : )
Mandy
 
Posts: 13
Joined: Wed May 21, 2014 1:02 pm

Re: The steady state contains NaN or Inf

Postby jpfeifer » Wed May 21, 2014 2:51 pm

Please post the updated file.
------------
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: The steady state contains NaN or Inf

Postby Mandy » Wed May 21, 2014 2:54 pm

thank you very much!
Attachments
command20140521.mod
(4.17 KiB) Downloaded 56 times
Mandy
 
Posts: 13
Joined: Wed May 21, 2014 1:02 pm

Re: The steady state contains NaN or Inf

Postby jpfeifer » Wed May 21, 2014 3:38 pm

Just sequentially execute the parameter definitions in Matlab using F9. Now Kb_B_ss is not defined in
Code: Select all
Rb_ss=r_ss+eta_ss-ka_kb*(Kb_B_ss-vb)^2*Kb_B_ss^2;                 
------------
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: The steady state contains NaN or Inf

Postby Mandy » Wed May 21, 2014 3:48 pm

ok, I will try in Matlab right now . Thank you !: )
Mandy
 
Posts: 13
Joined: Wed May 21, 2014 1:02 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 5 guests