# Simple RBC steady state

**URL:** <https://forum.dynare.org/t/simple-rbc-steady-state/25923>\
**Category:** Steady state\
**Created:** [14 June 2024 10:32 UTC](https://forum.dynare.org/t/simple-rbc-steady-state/25923 "2024-06-14T10:32:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Random.t](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/eada6e/32.png) [@Random.t](https://forum.dynare.org/u/Random.t)\
**Post date:** [14 June 2024 10:33 UTC](https://forum.dynare.org/t/simple-rbc-steady-state/25923/1 "2024-06-14T10:33:00Z")

</div>

Hi everybody,  
I am finding some troubles in computing the staeady state of a baseline RBC model. Please find attacched the .mod file. Doubts are:

1. Is it correct to claim that residuals have to be zero in all the equations to compute steady state? In that case I can’t get why residuals for Euler equation are not zero and residuals for TFP are NaN.  
[RBC.mod](https://forum.dynare.org/uploads/short-url/eF5IDYMtbI5UkkdIV9g8GlccP3B.mod) (618 Bytes)

2. If I do not have a steady\_state\_model block, should I provide a “initval;” block before the “steady;” command?

3. If I have a “steady\_state\_model” block, is “initval” block redundant?

Thank everybody for the support, I am a beginner in dynare and I am finding some difficulties.

---

<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:** [14 June 2024 13:26 UTC](https://forum.dynare.org/t/simple-rbc-steady-state/25923/2 "2024-06-14T13:26:44Z")

</div>

There were a few mistakes in equations. You should use an `initval` block if you don’t have an analytical steady state.  
[RBC.mod](https://forum.dynare.org/uploads/short-url/zzGPnyRHvVYxApaBtP3sgbUdsna.mod) (749 Bytes)

---

<div class="post-metadata">

**Author:** ![Random.t](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/eada6e/32.png) [@Random.t](https://forum.dynare.org/u/Random.t)\
**Post date:** [14 June 2024 14:14 UTC](https://forum.dynare.org/t/simple-rbc-steady-state/25923/3 "2024-06-14T14:14:04Z")

</div>

Thank professor;  
I notice that you do not declare an initial guess for marginal costs, is there a particular reason for it? Moreover, what your initial guess are based on and which variables should I include in the initval block?  
Thank for the support

---

<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:** [15 June 2024 07:25 UTC](https://forum.dynare.org/t/simple-rbc-steady-state/25923/4 "2024-06-15T07:25:31Z")

</div>

1. I forgot marginal costs.
2. You should include all nonzero variables.
3. I used economic intuition. I guess that labor is usually around 0.2 to 1/3. With TFP equal to 1, output is often around 1, of which consumption is roughly 2/3 (0.66) and investment the rest (0.34). With depreciation around 2.5 percent, the capital stock should be 40 time investment (about 12).
