# Dynare\_estimation\_init:: The steady state at the initial parameters cannot be computed. Error using print\_info The steady state has NaNs or Inf BUT model\_diagnostics is ok

**URL:** <https://forum.dynare.org/t/dynare-estimation-init-the-steady-state-at-the-initial-parameters-cannot-be-computed-error-using-print-info-the-steady-state-has-nans-or-inf-but-model-diagnostics-is-ok/27767>\
**Category:** Steady state\
**Created:** [9 July 2025 04:23 UTC](https://forum.dynare.org/t/dynare-estimation-init-the-steady-state-at-the-initial-parameters-cannot-be-computed-error-using-print-info-the-steady-state-has-nans-or-inf-but-model-diagnostics-is-ok/27767 "2025-07-09T04:23:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsantana](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/f05b48/32.png) [@jsantana](https://forum.dynare.org/u/jsantana)\
**Post date:** [9 July 2025 04:23 UTC](https://forum.dynare.org/t/dynare-estimation-init-the-steady-state-at-the-initial-parameters-cannot-be-computed-error-using-print-info-the-steady-state-has-nans-or-inf-but-model-diagnostics-is-ok/27767/1 "2025-07-09T04:23:23Z")

</div>

Hi Prof. Pfeifer, i’m running a dsge-var(1) model, but 'm getting the following error:

dynare\_estimation\_init:: The steady state at the initial parameters cannot be computed.  
Error using print\_info  
The steady state has NaNs or Inf

I checked the diagnostics and residuals and the results look ok, but when I apply the estimation command as you cans see in the file appended, the error happens. I did a review of the steady state equations but i didn’t see any error however appreciate any suggest to fix that problem. Thanks a lot!

The code was run on dynare 5.4 and 6.2, but the problem persist. I append the files

[DATABf2.xlsx](https://forum.dynare.org/uploads/short-url/AjzThf6BDr5QtGDhzAcrLntmJ5G.xlsx) (36.9 KB)  
[model1.mod](https://forum.dynare.org/uploads/short-url/eIWnK1p9LpHewrTLnX8VMFjvGRr.mod) (15.9 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:** [11 July 2025 11:49 UTC](https://forum.dynare.org/t/dynare-estimation-init-the-steady-state-at-the-initial-parameters-cannot-be-computed-error-using-print-info-the-steady-state-has-nans-or-inf-but-model-diagnostics-is-ok/27767/2 "2025-07-11T11:49:15Z")

</div>

1. Do not use `initval` for estimation as it will fail for parameter values other than the starting ones.
2. Make sure the prior space is restricted to sensible regions. You use

```auto
   eta,1.0,,,inv_gamma_pdf,1.0,0.25;

```

which means `eta` has a prior mean of 1. But having 1 is not allowed because it results in a division of 0 later on, causing the error message.

---

<div class="post-metadata">

**Author:** ![jsantana](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/f05b48/32.png) [@jsantana](https://forum.dynare.org/u/jsantana)\
**Post date:** [11 July 2025 13:04 UTC](https://forum.dynare.org/t/dynare-estimation-init-the-steady-state-at-the-initial-parameters-cannot-be-computed-error-using-print-info-the-steady-state-has-nans-or-inf-but-model-diagnostics-is-ok/27767/3 "2025-07-11T13:04:42Z")

</div>

Thanks Prof. Pfeiffer, it’s working now. I hadn’t seen the impact of this value on eta parameter.
