Page 1 of 1

The steady state contains NaN or Inf

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

Re: The steady state contains NaN or Inf

PostPosted: Thu Mar 12, 2015 9:39 am
by jpfeifer
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.

Re: The steady state contains NaN or Inf

PostPosted: Thu Mar 12, 2015 10:28 am
by dbunger
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.

Re: The steady state contains NaN or Inf

PostPosted: Thu Mar 12, 2015 10:35 am
by jpfeifer
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.

Re: The steady state contains NaN or Inf

PostPosted: Thu Mar 12, 2015 7:48 pm
by dbunger
Thank you very much!