# Problem with computing the steady state

**URL:** <https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436>\
**Category:** Steady state\
**Created:** [16 September 2024 21:32 UTC](https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436 "2024-09-16T21:32:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nedmacro](https://forum.dynare.org/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@Nedmacro](https://forum.dynare.org/u/Nedmacro)\
**Post date:** [16 September 2024 21:32 UTC](https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436/1 "2024-09-16T21:32:03Z")

</div>

Hello everyone.

I have been trying to replicate the following [paper](https://www.norges-bank.no/en/news-events/news-publications/Papers/Working-Papers/2024/wp-32024/) for quite some time but I haven’t been able to get past the steady state computation.

Firstly I tried to solve the exact model, with household heterogeneity, but I failed miserably, thus I tried to simplify things and revert to a simpler model with a representative household which maintains the core characteristics of the initial specification. That is, I consider every household a Ricardian one and I drop the aggregation equations.

My approach in solving for the steady state was using the first order conditions and solve for ratios with regards to H (labour) because I set steady state hours equal to 0.3, as they already do in the paper. I also set An=1 (non-energy firms’ technological factor), Pe=1 (relative energy price) and I also normalize the energy sector’s output Ye=1. I get meaningful steady state values but the model cannot close as I have a residual in the budget constraint of 0.01 which is suspiciously the same as the steady state value of the fiscal instruments (The, Tne and se). I also get some strange results, that is when I solve for the relative price Pe, based on the other steady state values I have computed, I get Pe \< 1 and not unity as I had initially set (P\_e\_ss\_test in the steady state file).

I am literally stuck and whatever combinations I have tried seem not to work. I would be really grateful if anyone could provide me with a pointer or tell me if I’m missing something really obvious as this is a very important paper for my PhD.

P.S. The authors refer to Dr. Michel Juillard in thanking him for helpful discussions so I don’t know if there is a level of computational complexity in the model that I’m unaware of.  
[energy6\_simple\_new.mod](https://forum.dynare.org/uploads/short-url/ii2IsjnzpAXW2xoFukBSKUkptDJ.mod) (8.5 KB)  
[steady\_energy5\_new.m](https://forum.dynare.org/uploads/short-url/bW86037zuvNNbURqhFYKXfXoBrz.m) (3.1 KB)

---

<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:** [18 September 2024 10:33 UTC](https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436/2 "2024-09-18T10:33:34Z")

</div>

This very much sounds like a conceptual problem where potentially the model equations still have a mistake. Alternatively, the normalizations do not work as intended, i.e. you are not correctly setting the necessary parameters to achieve the desired values.

---

<div class="post-metadata">

**Author:** ![Nedmacro](https://forum.dynare.org/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@Nedmacro](https://forum.dynare.org/u/Nedmacro)\
**Post date:** [18 September 2024 15:26 UTC](https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436/3 "2024-09-18T15:26:01Z")

</div>

Thank you very much for your response. New day, new problems. I’ve set the model in such a way that it “closes” in the steady state file, as I’m having a nearly 0 residual in the budget constraint test I ran. However, when I tried to simulate the model I’m having indeterminacy problems due to collinearity and/or unit root.

It seems that nearly every equation in the model is collinear, even the AR(1) equations that determine the shock processes. I think I’ve exhausted all the model’s equations in order to swap around and find the one causing problems. Even if I simplify things I have no other equations to turn to. Do you think this is an inherent model problem or these issues could be also parameter based?

I’ve tried to contact the authors on multiple occasions to address potential typos and errors, with no luck unfortunately.

[energy6\_simple\_new.mod](https://forum.dynare.org/uploads/short-url/dhKLVEEp2aZaSisCPNovbWeJYsf.mod) (8.7 KB)  
[steady\_energy5\_new.m](https://forum.dynare.org/uploads/short-url/3WS8mSC4dfnk4cBoM6Zc5PfMXCR.m) (3.5 KB)

---

<div class="post-metadata">

**Author:** ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)\
**Post date:** [18 September 2024 21:05 UTC](https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436/4 "2024-09-18T21:05:52Z")

</div>

You can’t use the steady state operator for the autoregressive equations. You need to calibrate these steady states.  
You can only use the steady state operator if there are other restrictions that define the steady state. This is not the case here.

---

<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:** [19 September 2024 08:17 UTC](https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436/5 "2024-09-19T08:17:35Z")

</div>

Related to what Michel said, see for reference

> [@Levels versus Growth Rates](https://forum.dynare.org/t/levels-versus-growth-rates/5652/8):
>
> You are confusing something. If collinearity arises after using the steady\_state operator, what you have done is exactly to remove the capability of the model to determine the steady state of that variable as a function of the parameters. Take again the example of the Fisher equation and steady state inflation. If you exogenously provide the steady state inflation pibar (which cannot be endogenously determined), you can endogenously compute the steady state nominal interest as the product of re…

---

<div class="post-metadata">

**Author:** ![Nedmacro](https://forum.dynare.org/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@Nedmacro](https://forum.dynare.org/u/Nedmacro)\
**Post date:** [19 September 2024 08:41 UTC](https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436/6 "2024-09-19T08:41:26Z")

</div>

Dr. Juillard and Dr. Pfeifer thank you so much for your responses.

I am not entirely sure I understand what I have to do. The model is calibrated using pre-determined steady state values for the shocks i.e., I have already chosen the values of the non-energy sector technology shock (A\_n\_ss = 1 in the .mod file), and the household, firm and investment endowments (T\_h\_e\_ss = T\_n\_e\_ss = s\_e\_ss = 0.01 in the .mod file). The energy sector’s technology shock is calibrated, per se, but based on my normalization of the steady state energy sector output (Y\_e\_ss = 1 in the .mod file).

These variables are endogenously determined in the model but it was my assumption that they were driven by an AR(1) process (the authors say nothing about this in the paper) because somehow they have to be simultaneously shocked, following a negative energy sector technology shock.

How can I calibrate these variables in the steady state if I have already calibrated the model based on these particular steady state values in the first place?

Thank you in advance for your time and replies.

---

<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:** [19 September 2024 08:57 UTC](https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436/7 "2024-09-19T08:57:53Z")

</div>

Then write e.g.

```auto
log(A_n) = (1-rho_An) * log(steady_state(A_n)) + rho_An * log(A_n(-1)) + eps_An;

```

as

```auto
log(A_n) = (1-rho_An) * log(A_n_ss) + rho_An * log(A_n(-1)) + eps_An;

```

---

<div class="post-metadata">

**Author:** ![Nedmacro](https://forum.dynare.org/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@Nedmacro](https://forum.dynare.org/u/Nedmacro)\
**Post date:** [19 September 2024 16:54 UTC](https://forum.dynare.org/t/problem-with-computing-the-steady-state/26436/8 "2024-09-19T16:54:55Z")

</div>

Thank you both again for your comments. I will apply your recommendation and go from there.
