# Problem with the steady state

**URL:** https://forum.dynare.org/t/problem-with-the-steady-state/23186
**Category:** Steady state
**Created:** [28 September 2023 08:47 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186 "2023-09-28T08:47:52Z")
**Posts on this page:** 12
**Page:** 2

<div class="post-metadata">

### Author: ![Kasper](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kasper](https://forum.dynare.org/u/Kasper)
#### Post date: [7 October 2023 17:23 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/21 "2023-10-07T17:23:28Z")

</div>

Thank you! Here is the adjusted .mod file, there are no longer NaNs in the steady state but the issue now is that matrix is singular to working precision:

[MinWageModel.mod](https://forum.dynare.org/uploads/short-url/5ldHah0O7dnH34l5WFRTDRAmL19.mod) (9.5 KB)  
[Model\_equations\_adj.pdf](https://forum.dynare.org/uploads/short-url/aVDVpUsggQFiFoVOon4IW98RldY.pdf) (171.5 KB)

One thing I am not sure is that I define inflation as P/P(-1) with P given as the weighted average of the two sector-level prices, but then I can only rescale the latter equation to express it in terms of P\_H/P and P\_L/P:  
 ![image](https://forum.dynare.org/uploads/default/original/3X/c/7/c744dc06427f83df25756f9c3656664ee0e133f4.png)

---

<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: [8 October 2023 08:37 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/22 "2023-10-08T08:37:33Z")

</div>

Again, there should be no price level appearing in your model, only relative prices and inflation.

---

<div class="post-metadata">

### Author: ![Kasper](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kasper](https://forum.dynare.org/u/Kasper)
#### Post date: [10 October 2023 13:43 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/23 "2023-10-10T13:43:59Z")

</div>

Ok, I can only rewrite it like this, but there is still the issue.

[MinWageModel.mod](https://forum.dynare.org/uploads/short-url/mZQ8rI9Veo9kGHS2EYk60of1MBe.mod) (9.4 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: [10 October 2023 15:46 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/24 "2023-10-10T15:46:47Z")

</div>

The parameter generating files are missing.

---

<div class="post-metadata">

### Author: ![Kasper](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kasper](https://forum.dynare.org/u/Kasper)
#### Post date: [10 October 2023 16:06 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/25 "2023-10-10T16:06:17Z")

</div>

Apologies, here they are:  
[MinWageModel.m](https://forum.dynare.org/uploads/short-url/vDQGsnWSnAQnNenIufzOzbunmmO.m) (6.4 KB)  
[MinWageModel.mod](https://forum.dynare.org/uploads/short-url/mZQ8rI9Veo9kGHS2EYk60of1MBe.mod) (9.4 KB)  
[MinWageModelSS\_Targets\_Final.m](https://forum.dynare.org/uploads/short-url/6c7R9zFLI29jP8U04MEya4SDLMm.m) (4.7 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: [10 October 2023 16:47 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/26 "2023-10-10T16:47:40Z")

</div>

You need to find out why the price levels are not consistent. You have

```auto
PstarL_P=p_aL/p_bL;

```

with `PstarL_P = 60.8947`, but `p_aL = 6.8003` and `p_bL = 4.9729` lead to ` p_aL/p_bL = 1.3675`

---

<div class="post-metadata">

### Author: ![Kasper](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kasper](https://forum.dynare.org/u/Kasper)
#### Post date: [10 October 2023 19:02 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/27 "2023-10-10T19:02:13Z")

</div>

Thank you very much, will work on that now!

---

<div class="post-metadata">

### Author: ![Kasper](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kasper](https://forum.dynare.org/u/Kasper)
#### Post date: [16 October 2023 13:40 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/28 "2023-10-16T13:40:22Z")

</div>

Hi,

I’ve been trying to figure out the issue with prices, but I am not sure what the issue could be. The prices are not consistent at all.  
[MinWageModel.mod](https://forum.dynare.org/uploads/short-url/ykzsQquhGOU2MjkAO131JJ5R0jc.mod) (9.4 KB)  
[MinWageModel.m](https://forum.dynare.org/uploads/short-url/jT9QOVGFVURuQhEkknGJCHobhUv.m) (6.9 KB)  
[MinWageModelSS\_Targets\_Final.m](https://forum.dynare.org/uploads/short-url/vMkZUJW5BiZlECTadng13JRki9h.m) (5.5 KB)

If I rewrite the code as in the below, the prices become consistent, but, there is still the issue with the steady state. I really can’t figure out what the issue is as the model seems fine conceptually.  
[MinWageModel.m](https://forum.dynare.org/uploads/short-url/cul8jV2jAhJTPzI0FJMdvfrIumD.m) (6.8 KB)  
[MinWageModel.mod](https://forum.dynare.org/uploads/short-url/ykzsQquhGOU2MjkAO131JJ5R0jc.mod) (9.4 KB)

Any ideas?

Thank you!

---

<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: [17 October 2023 09:00 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/29 "2023-10-17T09:00:53Z")

</div>

At this stage, I can only recommend sitting down with pencil and paper and solving the steady state analytically.

---

<div class="post-metadata">

### Author: ![Kasper](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kasper](https://forum.dynare.org/u/Kasper)
#### Post date: [18 October 2023 16:07 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/30 "2023-10-18T16:07:25Z")

</div>

Thank you! I did that but it says that steady state file did not compute the steady state and I don’t see why is this (there is still the issue with prices for some reason). Is there any other approach I could try?

[minwage.m](https://forum.dynare.org/uploads/short-url/oGQCR3mqbDCg6VdurBXAcSqDcF4.m) (5.0 KB)  
[MinWageModelNEW.mod](https://forum.dynare.org/uploads/short-url/A76PGwUlMUge5et25Xufk3rFoxC.mod) (9.5 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: [19 October 2023 15:40 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/31 "2023-10-19T15:40:24Z")

</div>

No, there isn’t. You know that there is an inconsistency between the steady-state equations you used and the entered dynamic model equations. Because you don’t know in which of the two parts the problem is, the only way is to work on both until they coincide. At this stage, I doubt that any brute force approach will be successful.

---

<div class="post-metadata">

### Author: ![Kasper](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kasper](https://forum.dynare.org/u/Kasper)
#### Post date: [20 October 2023 10:59 UTC](https://forum.dynare.org/t/problem-with-the-steady-state/23186/32 "2023-10-20T10:59:19Z")

</div>

I see, thank you very much for all the help!

[Previous page](https://forum.dynare.org/t/problem-with-the-steady-state/23186.md?page=1)
