# Problem with steady state

**URL:** <https://forum.dynare.org/t/problem-with-steady-state/4280>\
**Category:** Dynare help (legacy posts)\
**Created:** [10 November 2014 17:31 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280 "2014-11-10T17:31:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![eta](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/3ab097/32.png) [@eta](https://forum.dynare.org/u/eta)\
**Post date:** [10 November 2014 17:31 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/1 "2014-11-10T17:31:06Z")

</div>

Hi, I can’t find the steady state of this deterministic model. It’s very similar to a previous version that I have already simulated, apart from two equations and money in the utility function. In the initval-block I need to specify the value of P (price level), which I normalize to 1, and M (money), which I write as a function of the other variables at the steady state of “Euler equation 2”, but it doesn’t work:

Impossible to find the steady state. Either  
the model doesn’t have a steady state, there  
are an infinity of steady states, or the  
guess values are too far from the solution

---

<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:** [10 November 2014 19:41 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/2 "2014-11-10T19:41:11Z")

</div>

Try the most recent unstable version. It should result in

[quote]STEADY-STATE RESULTS:

M 333.333  
P 1  
c 1  
h 1  
pi 0  
w 1  
R 0.00300903  
r\_e 0.00300903  
y 1  
gdp 1  
gdp\_hat 0  
k 0  
u 4.02789  
g 0  
c\_hat 0  
w\_hat 0  
y\_hat 0  
h\_hat 0[/quote]

Alternatively, use this in the initval block for Dynare 4.4.3.

In addition: Maybe I am missing something, but

`MODEL_DIAGNOSTICS: The following endogenous variables aren't present at the current period in the model:
M      
`  
Your model only determines expected money, but not its actual value.

---

<div class="post-metadata">

**Author:** ![eta](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/3ab097/32.png) [@eta](https://forum.dynare.org/u/eta)\
**Post date:** [11 November 2014 08:53 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/3 "2014-11-11T08:53:27Z")

</div>

I tried the latest unstable version (10-Nov-2014) but it doesn’t work. What did you do ? Moreover, I replaced M(+1) with M. That should overcome the problem you mentioned. Thanks.

---

<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:** [11 November 2014 18:11 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/4 "2014-11-11T18:11:04Z")

</div>

Just try to use the values above as your initvals.

---

<div class="post-metadata">

**Author:** ![eta](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/3ab097/32.png) [@eta](https://forum.dynare.org/u/eta)\
**Post date:** [11 November 2014 19:02 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/5 "2014-11-11T19:02:14Z")

</div>

This is the first thing I’ve done but I was unsuccessful. How did you obtain those values ?

---

<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:** [11 November 2014 20:49 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/6 "2014-11-11T20:49:22Z")

</div>

Did you correctly set your path? The attached file runs with my unstable version. But I still get a collinearity warning between M and P. Are you sure your model determines them separately? Because it looks as if only real\_balances=M/P is defined.

---

<div class="post-metadata">

**Author:** ![eta](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/3ab097/32.png) [@eta](https://forum.dynare.org/u/eta)\
**Post date:** [12 November 2014 07:02 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/7 "2014-11-12T07:02:30Z")

</div>

You are right about real balances. I’ve corrected it. But it doesn’t work…

---

<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:** [12 November 2014 09:04 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/8 "2014-11-12T09:04:21Z")

</div>

Always post the updated file, state which version you are using and what the problem is.

---

<div class="post-metadata">

**Author:** ![missredridinghood](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@missredridinghood](https://forum.dynare.org/u/missredridinghood)\
**Post date:** [12 November 2014 10:19 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/9 "2014-11-12T10:19:35Z")

</div>

I have also encountered problems with the steady state. After fixing the mistake in an earlier case (thank you Johannes), I get the error.

Under the unstable version, I get:  
Warning: Matrix is singular to working precision.

> In trust\_region\>dogleg at 196  
> In trust\_region at 113  
> In dynare\_solve at 157  
> In evaluate\_steady\_state at 194  
> In resol at 104  
> In check at 73  
> In Ch1Modelv9 at 240  
> In dynare at 185  
> Error using print\_info (line 37)  
> The generalized Schur (QZ) decomposition failed. For more information, see the documentation for Lapack function  
> dgges: info=10, n=8. You can also run model\_diagnostics to get more information on what may cause this problem.  
> Error in check (line 76)  
> print\_info(info, 0, options);  
> Error in Ch1Modelv9 (line 240)  
> oo\_.dr.eigval = check(M\_,options\_,oo\_);  
> Error in dynare (line 185)  
> evalin(‘base’,fname) ;

But then under the stable version, I get:

An infinite element was encountered when trying to solve equation(s) 1, 4, 5, 8, 9, 10, 11, 13, 12, 14, 2, 3  
with respect to the variable(s): y, inv, v, n, k, w, q\_n, q\_k, i\_k, h\_n, y\_k, y\_n.  
The values of the endogenous variables when the problem was encountered were:  
y -2.771  
c 0.9163  
inv -0.381  
v -3.368  
n -2.019  
k 0.8689  
sdf -0.01005  
w -1215  
q\_n -2.011  
q\_k -2.053  
i\_k -0.121  
h\_n -0.5668  
y\_k -0.5998  
y\_n 0.1805  
a 0  
z 0

My question is what would be the ideal numbers to use as a steady state value?

Thanks.

Miss Red Riding Hood

---

<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:** [12 November 2014 11:19 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/10 "2014-11-12T11:19:55Z")

</div>

See the remarks in Pfeifer(2013): “A Guide to Specifying Observation Equations for the Estimation of DSGE Models” [sites.google.com/site/pfeiferecon/Pfeifer\_2013\_Observation\_Equations.pdf](https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf).

But in your case, I would check every equation if the log/exp transformation is correct. The posted values where the solver stopped look strange. c is bigger than y adn i\_k is negative.

---

<div class="post-metadata">

**Author:** ![eta](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/3ab097/32.png) [@eta](https://forum.dynare.org/u/eta)\
**Post date:** [12 November 2014 12:36 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/11 "2014-11-12T12:36:33Z")

</div>

I’ve tried both the unstable version (2014-11-10) and the stable version 4.4.3, both with the initial values you provided and with the “original” initial values. The problem is always the same:  
Error using print\_info (line 74)  
Impossible to find the steady state. Either the  
model doesn’t have a steady state, there are an  
infinity of steady states, or the guess values  
are too far from the solution

With regard to the problem of collinearity I defined real\_balances=M/P, as you suggested, because probably the model doesn’t determine M and P separately. Is this the correct procedure ?

---

<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:** [12 November 2014 20:15 UTC](https://forum.dynare.org/t/problem-with-steady-state/4280/12 "2014-11-12T20:15:08Z")

</div>

You must be doing something wrong with the unstable version. Please post the log-file after running the model with the unstable version.  
Also: adding the definition of real balances does not alter the fact that M and P are only jointly determined. You would need to fix money supply. Currently, the interest rate and the utility function determine real balances. But there is nothing pinning down M and P separately. You should replace all occurences of M/P by realbalances. When doing this, you will also notices that there is one equation too much, i.e. there is redundancy
