# Steady State for E-DSGE

**URL:** <https://forum.dynare.org/t/steady-state-for-e-dsge/25934>\
**Category:** Steady state\
**Created:** [17 June 2024 13:55 UTC](https://forum.dynare.org/t/steady-state-for-e-dsge/25934 "2024-06-17T13:55:27Z")\
**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:** [17 June 2024 13:55 UTC](https://forum.dynare.org/t/steady-state-for-e-dsge/25934/1 "2024-06-17T13:55:27Z")

</div>

Hi everybody,  
I am trying to compute the steady state of an E-DSGE which builds on Carattini et al. (2023). Here you find attacched the mod. file. I provide an initval, but the steady state is not computed as residuals of static equations are not always zero. In particular, I can’t get why residual of mg.utility with external habit is so high, even with a standard calibration of the CRRA parameter (ie. = 2).  
Thank for the support  
[edsge\_ss.mod](https://forum.dynare.org/uploads/short-url/kSzUMRkAk5Q8LXu59QXqVbQeEtY.mod) (6.2 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:** [17 June 2024 17:00 UTC](https://forum.dynare.org/t/steady-state-for-e-dsge/25934/2 "2024-06-17T17:00:35Z")

</div>

Check your model and your initial values and then focus on the big residuals. I fixed the Taylor rule to have `exp(epsa_r)` as otherwise the RHS would always be 0 in steady state. Also note that your model contains the price level. In New Keynesian models it usually has a unit root. Thus, there may be infinitely many steady states, which can cause root finders to fail.

---

<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:** [18 June 2024 07:20 UTC](https://forum.dynare.org/t/steady-state-for-e-dsge/25934/3 "2024-06-18T07:20:24Z")

</div>

Thank. My concern is the fact that the equation delivering the highest residual is mg. utility including external habi which is indeed right (ie \lambda\_{t}=\left(C\_{t}-h\bar{C}\_{t-1}\right)^{-\sigma\_{c}}). As for the price level, how can I detect the presence of a unit root if I do not have a closed form expression for P\_{t} but just the non-linear FOC of the monopolistic retailer who faces quadratic adjustment costs?

---

<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 June 2024 08:40 UTC](https://forum.dynare.org/t/steady-state-for-e-dsge/25934/4 "2024-06-18T08:40:10Z")

</div>

`R_ss` was also wrong. Start from  
[edsge\_ss.mod](https://forum.dynare.org/uploads/short-url/uyjHP1WW4mViPtDM3GF0ANN24ut.mod) (6.2 KB)

Regarding the price level: typically, the model is only formulated in terms of inflation rates and relative prices. There is no way to pin down the price level endogenously from the model.
