# Tweak for mode check plots

**URL:** <https://forum.dynare.org/t/tweak-for-mode-check-plots/942>\
**Category:** Dynare contributions and examples\
**Created:** [2 March 2009 03:33 UTC](https://forum.dynare.org/t/tweak-for-mode-check-plots/942 "2009-03-02T03:33:16Z")\
**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:** [2 March 2009 03:33 UTC](https://forum.dynare.org/t/tweak-for-mode-check-plots/942/1 "2009-03-02T03:33:16Z")

</div>

Hi everyone,

I love the mode\_check option in Dynare’s estimation command. I’ve found it really useful. But initially I was confused by the way that parameters which cause instability or multiple solutions are plotted as flat lines, just a little bit higher than the mode.

If you replace the mode\_check.m in your Dynare 4.0.2 matlab folder with the one attached here, then parameter values in unacceptable regions are plotted in red, just to make it clear that the model is close to a cliff.

Hope you find it useful.

cheers  
Jamie  
[mode\_check.m](https://forum.dynare.org/uploads/default/original/1X/5da5b4962e3d2621bf700be8cf77b54797975f28.m) (8.21 KB)

---

<div class="post-metadata">

**Author:** ![Susana](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@Susana](https://forum.dynare.org/u/Susana)\
**Post date:** [13 April 2012 18:56 UTC](https://forum.dynare.org/t/tweak-for-mode-check-plots/942/2 "2012-04-13T18:56:33Z")

</div>

Hey! Btw, do you know hoy to save the likelihood function and posterior kernel? Thanks!

---

<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:** [21 April 2012 12:26 UTC](https://forum.dynare.org/t/tweak-for-mode-check-plots/942/3 "2012-04-21T12:26:59Z")

</div>

The answer is here: [[Saving log-like and log-post](https://forum.dynare.org/t/saving-log-like-and-log-post/2466/1))
