# Simulation of a NKM non linear

**URL:** <https://forum.dynare.org/t/simulation-of-a-nkm-non-linear/565>\
**Category:** Dynare help (legacy posts)\
**Created:** [29 January 2008 16:36 UTC](https://forum.dynare.org/t/simulation-of-a-nkm-non-linear/565 "2008-01-29T16:36:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramonmar](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/f0a364/32.png) [@ramonmar](https://forum.dynare.org/u/ramonmar)\
**Post date:** [29 January 2008 16:36 UTC](https://forum.dynare.org/t/simulation-of-a-nkm-non-linear/565/1 "2008-01-29T16:36:23Z")

</div>

Dear Prof. Juilliard,  
I’m a student of Matlab and Dynare (I always have programmed in Gauss)  
I’m going to estimate a NKM model with nonlinearities in the Phillips curve for the euro zone. Before starting estimation process I’m trying to simulate the model with parameters derived in previous estimations and I have the message:  
Error in ==\> dynare at 26  
evalin(‘base’,fname) ;  
Could you please tell what I’m doing wrong?  
Best  
Ramon  
[nonlinear.mod](https://forum.dynare.org/uploads/default/original/1X/dd590475921ad211a0b0b0471d1c6810f9c946ff.mod) (658 Bytes)

---

<div class="post-metadata">

**Author:** ![bk1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/b/f9ae1b/32.png) [@bk1](https://forum.dynare.org/u/bk1)\
**Post date:** [8 February 2008 13:48 UTC](https://forum.dynare.org/t/simulation-of-a-nkm-non-linear/565/2 "2008-02-08T13:48:56Z")

</div>

At line 21, it should say:  
y= y(+1)-tau\*(int-inf(+1))+g;  
(that is - replace infla with inf).

The file runs correctly now. Does this solve your problem?

---

<div class="post-metadata">

**Author:** ![ramonmar](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/f0a364/32.png) [@ramonmar](https://forum.dynare.org/u/ramonmar)\
**Post date:** [12 February 2008 18:12 UTC](https://forum.dynare.org/t/simulation-of-a-nkm-non-linear/565/3 "2008-02-12T18:12:36Z")

</div>

Thanks a lot!!!  
😊

---

<div class="post-metadata">

**Author:** ![EnzoCerletti](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/96bed5/32.png) [@EnzoCerletti](https://forum.dynare.org/u/EnzoCerletti)\
**Post date:** [18 May 2008 17:32 UTC](https://forum.dynare.org/t/simulation-of-a-nkm-non-linear/565/4 "2008-05-18T17:32:57Z")

</div>

I see you were getting the \*Error in ==\> dynare at 26  
evalin(‘base’,fname) \* error message.

What are the most common reasons for getting that same message?  
(i.e. at first steps, with no other error messages, as in the cas of some typos, path problems, etc).
