# Mode check-shock variance log likelihood kernel is flat

**URL:** <https://forum.dynare.org/t/mode-check-shock-variance-log-likelihood-kernel-is-flat/3385>\
**Category:** Dynare help (legacy posts)\
**Created:** [12 September 2013 19:08 UTC](https://forum.dynare.org/t/mode-check-shock-variance-log-likelihood-kernel-is-flat/3385 "2013-09-12T19:08:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [16 September 2013 12:36 UTC](https://forum.dynare.org/t/mode-check-shock-variance-log-likelihood-kernel-is-flat/3385/6 "2013-09-16T12:36:30Z")

</div>

This is a quasi-bug in Dynare. Your combination of using a parameter defined within the shocks-block to estimate a variance does not work. Instead of

[code]shocks;  
var ec;sicg^2;  
end;

estimated\_params;  
sigc, inv\_gamma\_PDF,0.05,0.1;  
end;  
[/code]  
use

[code]shocks;  
var ec;sicg^2;  
end;

estimated\_params;  
stderr ec, inv\_gamma\_PDF,0.05,0.1;  
end;  
[/code]

---

_[View the full topic](https://forum.dynare.org/t/mode-check-shock-variance-log-likelihood-kernel-is-flat/3385)._
