# Steady State contains Nan or Inf - GK09

**URL:** <https://forum.dynare.org/t/steady-state-contains-nan-or-inf-gk09/11929>\
**Category:** Macroeconomic Model Data Base\
**Created:** [3 June 2018 16:50 UTC](https://forum.dynare.org/t/steady-state-contains-nan-or-inf-gk09/11929 "2018-06-03T16:50:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DiogoDuarte](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@DiogoDuarte](https://forum.dynare.org/u/DiogoDuarte)\
**Post date:** [3 June 2018 16:50 UTC](https://forum.dynare.org/t/steady-state-contains-nan-or-inf-gk09/11929/1 "2018-06-03T16:50:42Z")

</div>

Hello everyone, I’ve been trying to replicate the model for Gertler Karadi 2009 using the code from Peter Karadi himself, and including equations from the paper so that financial Intermediaries exist in this model. Equations are also the same used in the MacroModelBase NK\_GK11 model, However, I just cannot run the simulation because my Steady State contains Nan or Inf (mod file attached).

Can you please help me on that?Thanks in advance,

[GK11\_KaradiBanks.mod](https://forum.dynare.org/uploads/default/original/2X/7/7feabceb4f4d620877c10cf3de12e6366bd75b50.mod) (6.4 KB)

---

<div class="post-metadata">

**Author:** ![DiogoDuarte](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@DiogoDuarte](https://forum.dynare.org/u/DiogoDuarte)\
**Post date:** [3 June 2018 17:11 UTC](https://forum.dynare.org/t/steady-state-contains-nan-or-inf-gk09/11929/2 "2018-06-03T17:11:16Z")

</div>

Just found out 2 parameters were not defined: lambda and omega. Once I defined them, the code worked just fine!

Thanks everyone,

Diogo
