# Bug in newrat?

**URL:** <https://forum.dynare.org/t/bug-in-newrat/937>\
**Category:** Dynare v4 (legacy)\
**Created:** [24 February 2009 21:48 UTC](https://forum.dynare.org/t/bug-in-newrat/937 "2009-02-24T21:48:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamieHall](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/3ec8ea/32.png) [@JamieHall](https://forum.dynare.org/u/JamieHall)\
**Post date:** [24 February 2009 21:48 UTC](https://forum.dynare.org/t/bug-in-newrat/937/1 "2009-02-24T21:48:14Z")

</div>

I’m a big fan of the newrat optimiser that comes with Dynare 4 (options: mode\_compute=5). It’s found the mode for some nasty models where nothing else has worked.

Just thought I’d mention a possible bug, though. Its subroutine DsgeLikelihood\_hh failed at line 224, because the variable LIK wasn’t defined. This occurred when kalman\_algo was set to 2, and H was zero. Should line 220 read “elseif (options\_.kalman\_algo == 2 || options\_.kalman\_algo == 3)”?

Jamie

---

<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:** [24 July 2017 13:29 UTC](https://forum.dynare.org/t/bug-in-newrat/937/2 "2017-07-24T13:29:04Z")

</div>

Closed on 24 July 2017 13:29 UTC



---

<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:** [24 July 2017 13:29 UTC](https://forum.dynare.org/t/bug-in-newrat/937/3 "2017-07-24T13:29:54Z")

</div>

Archived on 24 July 2017 13:29 UTC


