# The value of irf is Inf

**URL:** <https://forum.dynare.org/t/the-value-of-irf-is-inf/24099>\
**Category:** Dynare++\
**Created:** [24 October 2023 16:09 UTC](https://forum.dynare.org/t/the-value-of-irf-is-inf/24099 "2023-10-24T16:09:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jingjing](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@Jingjing](https://forum.dynare.org/u/Jingjing)\
**Post date:** [24 October 2023 16:09 UTC](https://forum.dynare.org/t/the-value-of-irf-is-inf/24099/1 "2023-10-24T16:09:48Z")

</div>

I run a uncertainty shocks model in dynare 5.2,the results is right.  
When I set order=4 in dynare++, the values of `dyn_irfm_eps_tau_mean` are all `0`. the values of `dyn_irfm_eps_tau_var` are all `Inf`.

I run `Born_Pfeifer_2014` in Dynare++ at order=4, the `irf values` are right.

So what’s wrong with my code?

 ![image](https://forum.dynare.org/uploads/default/original/3X/9/c/9c16fd151743c84470095af644b55706c098a3b4.png)  
 ![image](https://forum.dynare.org/uploads/default/original/3X/f/c/fcba1a664c2c1b7c32c3a8233ae58d24ac3637ce.png)

---

<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 October 2023 20:24 UTC](https://forum.dynare.org/t/the-value-of-irf-is-inf/24099/2 "2023-10-24T20:24:42Z")

</div>

Without the codes it is impossible to tell. My hunch is explosiveness without pruning.

---

<div class="post-metadata">

**Author:** ![Jingjing](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@Jingjing](https://forum.dynare.org/u/Jingjing)\
**Post date:** [25 October 2023 06:51 UTC](https://forum.dynare.org/t/the-value-of-irf-is-inf/24099/3 "2023-10-25T06:51:32Z")

</div>

Thanks for your reply, Prof Pfeifer.  
I think your hunch is right.  
The explosiveness may be come from the standard deviation of uncertainty shock `sigma_sigma_tau`,since when I set `sigma_sigma_tau=0.48`, the `dyn_irfm_eps_tau` shows values.  
For the explosiveness, there is no pruning command in the option of Dynare++ .  
So,under the original values, how can I aviod explosiveness?

---

<div class="post-metadata">

**Author:** ![Jingjing](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@Jingjing](https://forum.dynare.org/u/Jingjing)\
**Post date:** [25 October 2023 07:10 UTC](https://forum.dynare.org/t/the-value-of-irf-is-inf/24099/4 "2023-10-25T07:10:13Z")

</div>

And I would like to caculate the welfare of uncertainty shocks, Prof Pfeifer.  
When I run the mod file in dynare++ at order=4,  
Does the welfare obtained through this command `dyn_mean(dyn_totutility)` make sense?

---

<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:** [26 October 2023 20:35 UTC](https://forum.dynare.org/t/the-value-of-irf-is-inf/24099/5 "2023-10-26T20:35:33Z")

</div>

Is there a reason you are using Dynare++ instead of Dynare 5.5?

---

<div class="post-metadata">

**Author:** ![Jingjing](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@Jingjing](https://forum.dynare.org/u/Jingjing)\
**Post date:** [7 November 2023 13:26 UTC](https://forum.dynare.org/t/the-value-of-irf-is-inf/24099/6 "2023-11-07T13:26:41Z")

</div>

I send the mod file to you by PM. I would like to calculate the welfare, but the value is infinity, so I would like to use Dynare++ instead of Dynare 5.5.

---

<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:** [7 November 2023 15:14 UTC](https://forum.dynare.org/t/the-value-of-irf-is-inf/24099/7 "2023-11-07T15:14:39Z")

</div>

Dynare++ should yield exactly the same results as Dynare. Both do not yet support pruning at order\>3.
