# Question about the NK model using Dynare

**URL:** <https://forum.dynare.org/t/question-about-the-nk-model-using-dynare/26562>\
**Category:** Steady state\
**Created:** [12 October 2024 07:39 UTC](https://forum.dynare.org/t/question-about-the-nk-model-using-dynare/26562 "2024-10-12T07:39:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tianyu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/t/9f8e36/32.png) [@Tianyu](https://forum.dynare.org/u/Tianyu)\
**Post date:** [12 October 2024 07:39 UTC](https://forum.dynare.org/t/question-about-the-nk-model-using-dynare/26562/1 "2024-10-12T07:39:14Z")

</div>

Hello everyone.

I’m writing NK model in Dynare and always encounter the problem like:  
ERROR: in the ‘steady\_state\_model’ block, variable ‘a’ is undefined in the declaration of variable ‘y\_n’  
Preprocessing time: 0h00m00s.

I have no idea about the error for I have already defined the a variable above. Please help me.  
Best  
[NK\_stickyprice.mod](https://forum.dynare.org/uploads/short-url/kqlRdYy1UQUdStbddtvj6liKWa5.mod) (8.1 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:** [13 October 2024 12:15 UTC](https://forum.dynare.org/t/question-about-the-nk-model-using-dynare/26562/2 "2024-10-13T12:15:34Z")

</div>

No, you set `a=0` in `initval`, but that is meaningless for `steady_state_model`.
