# Strange shapes of IRFs in DSGE model with stcky wages, prices and government spending shock

**URL:** https://forum.dynare.org/t/strange-shapes-of-irfs-in-dsge-model-with-stcky-wages-prices-and-government-spending-shock/12725
**Category:** Stochastic simulations
**Created:** [2 November 2018 16:23 UTC](https://forum.dynare.org/t/strange-shapes-of-irfs-in-dsge-model-with-stcky-wages-prices-and-government-spending-shock/12725 "2018-11-02T16:23:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fabiolapedulla](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@fabiolapedulla](https://forum.dynare.org/u/fabiolapedulla)
#### Post date: [2 November 2018 16:23 UTC](https://forum.dynare.org/t/strange-shapes-of-irfs-in-dsge-model-with-stcky-wages-prices-and-government-spending-shock/12725/1 "2018-11-02T16:23:56Z")

</div>

Hi everybody!  
I wrote a dynare code and it runs but I see this oscillating movement in some IRFs!  
I don’t know what is wrong…I checked the FOCs and the log linearization…I can’t find the error!  
I attach the code here…  
Thank you in advance! [group\_7fabi.mod](https://forum.dynare.org/uploads/default/original/2X/b/b538185108bd13cd019e309d92478138c4b1656e.mod) (3.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: [3 November 2018 18:30 UTC](https://forum.dynare.org/t/strange-shapes-of-irfs-in-dsge-model-with-stcky-wages-prices-and-government-spending-shock/12725/2 "2018-11-03T18:30:30Z")

</div>

You have a complex eigenvalue that should not be there. Usually, this is caused by a timing error or a sign error in the model.

---

<div class="post-metadata">

### Author: ![fabiolapedulla](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@fabiolapedulla](https://forum.dynare.org/u/fabiolapedulla)
#### Post date: [5 November 2018 02:02 UTC](https://forum.dynare.org/t/strange-shapes-of-irfs-in-dsge-model-with-stcky-wages-prices-and-government-spending-shock/12725/3 "2018-11-05T02:02:35Z")

</div>

Thank you so much professor! There was a sign error in the model, in the equation of the wage inflation…Now I post the correct code! Maybe it would be useful to someone!

[gruppo7.mod](https://forum.dynare.org/uploads/default/original/2X/f/fd169f05ff96cc2155e9561f8db8b0738157317b.mod) (3.6 KB)
