# Simulation

**URL:** <https://forum.dynare.org/t/simulation/4863>\
**Category:** Dynare help (legacy posts)\
**Created:** [28 July 2015 09:11 UTC](https://forum.dynare.org/t/simulation/4863 "2015-07-28T09:11:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brigitte](https://forum.dynare.org/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@Brigitte](https://forum.dynare.org/u/Brigitte)\
**Post date:** [28 July 2015 09:11 UTC](https://forum.dynare.org/t/simulation/4863/1 "2015-07-28T09:11:23Z")

</div>

Dear dynare creators and users,

I have a loglinearized model in dynare. When I run model\_diagnostics and check command, everything is fine ( no unit root). However, when I stoch\_simul the system with a preference shock, I can see for the consumption of Ricardian HH zero mean but also zero variance in theoretical moments section. Moreover, dynare tells me, that this consumption is either nonstationary or constant. Given equation is in accordance with the literature. The IRF then seem weird. How this could happen? Thank you very much for your comments.

---

<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:** [28 July 2015 09:25 UTC](https://forum.dynare.org/t/simulation/4863/2 "2015-07-28T09:25:49Z")

</div>

Mod-file please.

---

<div class="post-metadata">

**Author:** ![Brigitte](https://forum.dynare.org/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@Brigitte](https://forum.dynare.org/u/Brigitte)\
**Post date:** [28 July 2015 09:52 UTC](https://forum.dynare.org/t/simulation/4863/3 "2015-07-28T09:52:26Z")

</div>

Dear professor Pfeifer,

thank you very much. Here is the mod. file.  
[dsge2.mod](https://forum.dynare.org/uploads/default/original/2X/d/d09e524db1886a75cb3d6558ee190ae7529d919e.mod) (23.6 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:** [28 July 2015 10:02 UTC](https://forum.dynare.org/t/simulation/4863/4 "2015-07-28T10:02:47Z")

</div>

You need to check your FOCs. If you look at the policy function of c\_R you will see that it does not respond to most shocks.

Sidenote: it seems you are going for estimation. In this case, you are neglecting parameter dependence in your mod-file (search the forum)

---

<div class="post-metadata">

**Author:** ![Brigitte](https://forum.dynare.org/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@Brigitte](https://forum.dynare.org/u/Brigitte)\
**Post date:** [28 July 2015 17:27 UTC](https://forum.dynare.org/t/simulation/4863/5 "2015-07-28T17:27:40Z")

</div>

I found the mistake. Thank you very much for your help and thank you for introducing me the parameter dependance, I will use it.

Best regards,  
B.
