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 dbunger » Wed Mar 11, 2015 3:02 pm

Hi Dynare users

I just learned using Dynare recently and I have this problem that drives me crazy. I know, there have been already a lot of posts concerning this subject and some of them helped to some extend. However, I think after considering more or less all of them, I still end up with the following error messages.

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 Master2 (line 577)
steady;

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

Can someone see where my mistake is?
Thanks a lot!
dbunger
 
Posts: 5
Joined: Wed Mar 11, 2015 2:38 pm

Re: The steady state contains NaN or Inf

Postby jpfeifer » Thu Mar 12, 2015 9:39 am

Use the
Code: Select all
resid(1);

statement before
Code: Select all
steady;

I do not understand what you are doing. You say your model is linear using
Code: Select all
model(linear);

But then you provide initial values that are clearly different from 0, indicating your model is nonlinear. You need to fix this.
------------
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 dbunger » Thu Mar 12, 2015 10:28 am

Dear Mr. Pfeifer

Thank you for your response! I'm trying to replicate the model developed by Chen, Curdia & Ferrero (2012) (without zero lower bound condition). The linear model is in they're accessible appendix p. 15 and the steady state conditions on page 13.

I updated my file with resid(1) as you suggested.
dbunger
 
Posts: 5
Joined: Wed Mar 11, 2015 2:38 pm

Re: The steady state contains NaN or Inf

Postby jpfeifer » Thu Mar 12, 2015 10:35 am

You are confusing the steady states of the nonlinear model variables, which are provided in the appendix and are used during linearization and the steady states of the linearized variables, which are percentage deviations from steady state.
------------
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 dbunger » Thu Mar 12, 2015 7:48 pm

Thank you very much!
dbunger
 
Posts: 5
Joined: Wed Mar 11, 2015 2:38 pm


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 5 guests