# ERROR! The steadystate values returned

**URL:** <https://forum.dynare.org/t/error-the-steadystate-values-returned/1365>\
**Category:** Dynare help (legacy posts)\
**Created:** [4 March 2010 11:55 UTC](https://forum.dynare.org/t/error-the-steadystate-values-returned/1365 "2010-03-04T11:55:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajk77](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@ajk77](https://forum.dynare.org/u/ajk77)\
**Post date:** [4 March 2010 11:55 UTC](https://forum.dynare.org/t/error-the-steadystate-values-returned/1365/1 "2010-03-04T11:55:48Z")

</div>

Hello?  
First of all, Please find attached files.  
I’m using the steadystate.m file. but I’m not sure I’m doing properly.  
All steady-state values are calculated by hand. I checked it by making another m file. To my knowledge, that’s no problem.  
But, I couldn’t find where I got stuck.  
Please have look my codes. I would greatly appreciate it.

The error is as follows;  
Residual for equation number 1 is equal to 0.14353  
Residual for equation number 2 is equal to -25.236  
Residual for equation number 3 is equal to -0.006006  
…  
…  
…  
Residual for equation number 41 is equal to 0.056

??? Error using ==\> steady\_ at 89  
The steadystate values returned by smallopen\_steadystate.m don’t solve the static model!  
Error in ==\> steady at 52  
steady\_;  
Error in ==\> smallopen at 543  
steady;  
Error in ==\> dynare at 132  
evalin(‘base’,fname) ;

---

<div class="post-metadata">

**Author:** ![ajk77](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@ajk77](https://forum.dynare.org/u/ajk77)\
**Post date:** [5 March 2010 15:44 UTC](https://forum.dynare.org/t/error-the-steadystate-values-returned/1365/2 "2010-03-05T15:44:13Z")

</div>

Plz find the reduced mod file. As the sm.mod file looks a bit lagre.  
It contains 16 equations, CES production function. Calvo equation.  
The errors are as follows. just one residual does not converge.

esidual for equation number 1 is equal to 0  
…  
Residual for equation number 9 is equal to -0.50058  
…  
Residual for equation number 16 is equal to 0

??? Error using ==\> steady\_ at 132  
STEADY: convergence problems  
Error in ==\> steady at 52  
steady\_;  
Error in ==\> ce at 276  
steady;  
Error in ==\> dynare at 132  
evalin(‘base’,fname) ;  
[cc\_bar.mod](https://forum.dynare.org/uploads/default/original/1X/3d1c7bf204f07c0fc2d7f19351960aeb703868d4.mod) (2.27 KB)

---

<div class="post-metadata">

**Author:** ![AssiaEzzeroug](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/b19c9b/32.png) [@AssiaEzzeroug](https://forum.dynare.org/u/AssiaEzzeroug)\
**Post date:** [7 March 2010 15:35 UTC](https://forum.dynare.org/t/error-the-steadystate-values-returned/1365/3 "2010-03-07T15:35:16Z")

</div>

Hi,

Your model is not linear since you have powers in some of your equations (e.g the ones defining y\_d, mc\_d). Besides you may need to specify initial values for certain variables. As far as I understood, that’s what you tried to do below the block parameters through the equations y\_d\_ss,…right? Then you have to use this information directly into the block initval (y\_d=y\_d\_ss,…). Note that the guess value for each variable is set to 0 by default when you don’t specify one inside ‘initval’.

Hope this helps

---

<div class="post-metadata">

**Author:** ![ajk77](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@ajk77](https://forum.dynare.org/u/ajk77)\
**Post date:** [7 March 2010 20:22 UTC](https://forum.dynare.org/t/error-the-steadystate-values-returned/1365/4 "2010-03-07T20:22:21Z")

</div>

Fortunately, I found my error.  
In the NKPC equation, I put a mark-up variable as constant. It makes an error.  
altenatively, the AR(1) process mark-up variable sort my error out.  
anyway, thank you for your help.

I had a question.  
my model is obviously linear. y\_d\_ss, mc\_d\_ss are constant as I employ the CES function.  
If I put constant values which are larger than 1in the log-linearized equations, (ex: wage\_ss/MC\_ss or Y\_ss/C\_ss)  
does it make problem?
