# "steady state model" error - function

**URL:** <https://forum.dynare.org/t/steady-state-model-error-function/22212>\
**Category:** Steady state\
**Created:** [2 April 2023 17:54 UTC](https://forum.dynare.org/t/steady-state-model-error-function/22212 "2023-04-02T17:54:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![THkim](https://forum.dynare.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@THkim](https://forum.dynare.org/u/THkim)\
**Post date:** [2 April 2023 17:54 UTC](https://forum.dynare.org/t/steady-state-model-error-function/22212/1 "2023-04-02T17:54:38Z")

</div>

Hi, I’m a beginner and trying to find my model’s steady state by “steady state model” function,  
but I got the message as follows.

Could you help me to fix this file and find the steady state… ?  
I kept spending my time on fixing the code, but it failed.

[mycode\_2.mod](https://forum.dynare.org/uploads/short-url/uhLw0sBeUbqhopbARpog2CGSiX7.mod) (4.1 KB)

ῡResiduals of the static equations:

Equation number 1 : 0 : log\_infl  
Equation number 2 : 0 : log\_q  
Equation number 3 : 0 : log\_y  
Equation number 4 : 0 : Equi  
Equation number 5 : 0 : D  
Equation number 6 : 0 : w  
Equation number 7 : 0 : ia  
Equation number 8 : 0 : ib  
Equation number 9 : 0 : Savers FOC  
Equation number 10 : 0 : 10  
Equation number 11 : 0 : 11  
Equation number 12 : 0 : Borrowers FOC  
Equation number 13 : -1.2933 : 13. Borrowers FOC  
Equation number 14 : 0 : 14  
Equation number 15 : 0 : 13. borrowers LTV  
Equation number 16 : 0 : 16  
Equation number 17 : 0 : inflhat  
Equation number 18 : 0 : 18  
Equation number 19 : 0 : 19  
Equation number 20 : 0 : 20  
Equation number 21 : 0 : ik  
Equation number 22 : Inf : 22  
Equation number 23 : 0 : Savers cont  
Equation number 24 : 0 : F  
Equation number 25 : 0 : 26. Z  
Equation number 26 : 0 : borrowers cont  
Equation number 27 : 0 : production function  
Equation number 28 : 0 : 28  
Equation number 29 : 0 : shocks

error: The steadystate file did not compute the steady state  
error: called from  
print\_info at line 32 column 5  
steady at line 102 column 5  
driver at line 455 column 1  
dynare at line 278 column 5

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [3 April 2023 14:18 UTC](https://forum.dynare.org/t/steady-state-model-error-function/22212/2 "2023-04-03T14:18:45Z")

</div>

Check the equations with residuals. For example, equation 22 contains

```auto
ln(eps_R)

```

which is the logarithm of something that is 0 in steady state.

---

<div class="post-metadata">

**Author:** ![THkim](https://forum.dynare.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@THkim](https://forum.dynare.org/u/THkim)\
**Post date:** [3 April 2023 16:20 UTC](https://forum.dynare.org/t/steady-state-model-error-function/22212/3 "2023-04-03T16:20:58Z")

</div>

Thank you for your help! I solved the residuals problem but faced “no stable equilibrium” as follows,  
[mycode\_3.mod](https://forum.dynare.org/uploads/short-url/gde0DjkTm4qxZKjemdEFbzrCHjE.mod) (4.3 KB)

Could I ask you how I can solve this?

=====================================================================  
᝼warning: Problem in the model specification: some variables don’t appear as current. Check whether this is desired.  
warning: called from  
check\_model at line 21 column 5  
stoch\_simul at line 92 column 1  
driver at line 455 column 27  
dynare at line 278 column 5  
C:/Users/kofqw/AppData/Local/Temp/octave\_wQHPFZ.m at line 5 column 1

error: Blanchard & Kahn conditions are not satisfied: no stable equilibrium.  
error: called from  
print\_info at line 32 column 5  
stoch\_simul at line 120 column 5  
driver at line 455 column 27  
dynare at line 278 column 5

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [3 April 2023 17:21 UTC](https://forum.dynare.org/t/steady-state-model-error-function/22212/4 "2023-04-03T17:21:58Z")

</div>

The following is the problem:

```auto
MODEL_DIAGNOSTICS: The following endogenous variables aren't present at the current period in the model:
lamda

```
