# The steady state at the initial parameters cannot be computeds

**URL:** <https://forum.dynare.org/t/the-steady-state-at-the-initial-parameters-cannot-be-computeds/20951>\
**Category:** Steady state\
**Created:** [25 August 2022 13:55 UTC](https://forum.dynare.org/t/the-steady-state-at-the-initial-parameters-cannot-be-computeds/20951 "2022-08-25T13:55:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhuzixiang](https://forum.dynare.org/user_avatar/forum.dynare.org/zhuzixiang/32/20461_2.png) [@zhuzixiang](https://forum.dynare.org/u/zhuzixiang)\
**Post date:** [25 August 2022 13:55 UTC](https://forum.dynare.org/t/the-steady-state-at-the-initial-parameters-cannot-be-computeds/20951/1 "2022-08-25T13:55:58Z")

</div>

Dear Pro. Pfeifer,  
My model runs with stoch\_simul but fails when estimation. I receive the error message:  
dynare\_estimation\_init:: The steady state at the initial parameters cannot be computed.  
错误使用 print\_info (第 32 行)  
The steadystate file did not compute the steady state

出错 dynare\_estimation\_init (第 619 行)  
print\_info(info, 0, options\_);

出错 dynare\_estimation\_1 (第 112 行)  
dynare\_estimation\_init(var\_list\_, dname, [], M\_, options\_, oo\_, estim\_params\_,  
bayestopt\_);

出错 dynare\_estimation (第 105 行)  
dynare\_estimation\_1(var\_list,dname);

出错 optimal\_est.driver (第 1187 行)  
oo\_recursive\_=dynare\_estimation(var\_list\_);

出错 dynare (第 293 行)  
evalin(‘base’,[fname ‘.driver’]) ;

My mod file and data are  
[optimal\_est.mod](https://forum.dynare.org/uploads/short-url/ksrjlhl85WaVMr1aPTgtuErwJgt.mod) (39.3 KB)  
[QtoQ\_1997\_2021.mat](https://forum.dynare.org/uploads/short-url/tp1PB6pTPdR8l9ldAc90xC1j5el.mat) (7.5 KB)

Any help will be appreciated.

Thanks,  
Zixiang Zhu

---

<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:** [26 August 2022 07:16 UTC](https://forum.dynare.org/t/the-steady-state-at-the-initial-parameters-cannot-be-computeds/20951/2 "2022-08-26T07:16:58Z")

</div>

You are hardcoding the parameter dependence outside of the `steady_state_model`-block instead of updating the steady state with each parameter draw.

---

<div class="post-metadata">

**Author:** ![zhuzixiang](https://forum.dynare.org/user_avatar/forum.dynare.org/zhuzixiang/32/20461_2.png) [@zhuzixiang](https://forum.dynare.org/u/zhuzixiang)\
**Post date:** [26 August 2022 15:16 UTC](https://forum.dynare.org/t/the-steady-state-at-the-initial-parameters-cannot-be-computeds/20951/3 "2022-08-26T15:16:52Z")

</div>

Thanks a lot. I think I get your point. Then how should I fix it? Is that mean I did not pin down the relationship between the steady state and the parameters correctly, probably because I attached over conditions to the parameters to solve the steady state?

---

<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:** [27 August 2022 19:47 UTC](https://forum.dynare.org/t/the-steady-state-at-the-initial-parameters-cannot-be-computeds/20951/4 "2022-08-27T19:47:54Z")

</div>

No, what I am saying is that the setting belongs into the `steady_state_model`, not outside. Currently, you fix the steady state values at the parameter values before running estimation.

---

<div class="post-metadata">

**Author:** ![zhuzixiang](https://forum.dynare.org/user_avatar/forum.dynare.org/zhuzixiang/32/20461_2.png) [@zhuzixiang](https://forum.dynare.org/u/zhuzixiang)\
**Post date:** [27 August 2022 23:34 UTC](https://forum.dynare.org/t/the-steady-state-at-the-initial-parameters-cannot-be-computeds/20951/5 "2022-08-27T23:34:15Z")

</div>

Thanks! Then how should I fix it?

---

<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:** [28 August 2022 07:02 UTC](https://forum.dynare.org/t/the-steady-state-at-the-initial-parameters-cannot-be-computeds/20951/6 "2022-08-28T07:02:40Z")

</div>

Move these parameter settings into the `steady_state_model`-block as in [DSGE\_mod/RBC\_baseline\_first\_diff\_bayesian.mod at master · JohannesPfeifer/DSGE\_mod · GitHub](https://github.com/JohannesPfeifer/DSGE_mod/blob/master/RBC_baseline/RBC_baseline_first_diff_bayesian.mod)
