# GSA of IRFs with a higher order approximation

**URL:** <https://forum.dynare.org/t/gsa-of-irfs-with-a-higher-order-approximation/19758>\
**Category:** Identification/Sensitivity\
**Created:** [7 February 2022 14:56 UTC](https://forum.dynare.org/t/gsa-of-irfs-with-a-higher-order-approximation/19758 "2022-02-07T14:56:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![burgerino](https://forum.dynare.org/letter_avatar_proxy/v4/letter/b/a587f6/32.png) [@burgerino](https://forum.dynare.org/u/burgerino)\
**Post date:** [7 February 2022 14:56 UTC](https://forum.dynare.org/t/gsa-of-irfs-with-a-higher-order-approximation/19758/1 "2022-02-07T14:56:07Z")

</div>

Hello,

I am interested in a global sensitivity analysis toolbox. Particularly, I was wondering if it is possible to investigate IRFs sensitivity to parameters for the model with a higher order of approximation?

Since in the higher-orders IRFs are typically defined to be in relative terms of stochastic steady-state, I guess that GSA does not produce stochastic simulation to approximate IRFs? If that is the case, is it possible to somehow include stochastic simulation to generate IRFs (maybe avoid irf\_calibration block?) and conduct further analysis using GSA?

Thanks a lot for the help!

Update: I estimated what parameters ensure that the impulse IRF of various second moments is positive or negative. the result is that there are not any parameter values, suggesting that the impulse stays at zero. Thus, I guess irf\_calibration uses only the first order of approximation. In that case, my question is whether I can introduce either higher-order IRFs or results from a stochastic simulation that can be used in GSA toolbox?

---

<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:** [12 February 2022 12:50 UTC](https://forum.dynare.org/t/gsa-of-irfs-with-a-higher-order-approximation/19758/2 "2022-02-12T12:50:28Z")

</div>

Can you provide me with the file?  
@rattoma may know more.

---

<div class="post-metadata">

**Author:** ![burgerino](https://forum.dynare.org/letter_avatar_proxy/v4/letter/b/a587f6/32.png) [@burgerino](https://forum.dynare.org/u/burgerino)\
**Post date:** [14 March 2022 12:46 UTC](https://forum.dynare.org/t/gsa-of-irfs-with-a-higher-order-approximation/19758/3 "2022-03-14T12:46:18Z")

</div>

Thanks for the response but sorry for the silence on my side. I somewhat thought the post died.🙂

As for the example, I think my case works for any model with 3rd perturbation. So one could just look at a seminal case of [Basu and Bundick 2017](https://github.com/JohannesPfeifer/DSGE_mod/tree/master/Basu_Bundick_2017), as produced by your effort. As for the question, one could ask which parameters are important to generate a positive response of VIX, s.t.

irf\_calibration;  
cond\_var\_R\_E, eps\_a, +  
end

---

<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 March 2022 12:07 UTC](https://forum.dynare.org/t/gsa-of-irfs-with-a-higher-order-approximation/19758/4 "2022-03-24T12:07:46Z")

</div>

`dynare_sensitivity` currently only works at first order. In the future, you should get a warning: [dynare\_sensitivity.m: provide warning if order is reset (!2009) · Merge requests · Dynare / dynare · GitLab](https://git.dynare.org/Dynare/dynare/-/merge_requests/2009)

---

<div class="post-metadata">

**Author:** ![burgerino](https://forum.dynare.org/letter_avatar_proxy/v4/letter/b/a587f6/32.png) [@burgerino](https://forum.dynare.org/u/burgerino)\
**Post date:** [24 March 2022 13:16 UTC](https://forum.dynare.org/t/gsa-of-irfs-with-a-higher-order-approximation/19758/5 "2022-03-24T13:16:54Z")

</div>

Thank you

---

<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 March 2022 13:54 UTC](https://forum.dynare.org/t/gsa-of-irfs-with-a-higher-order-approximation/19758/6 "2022-03-24T13:54:13Z")

</div>

I also opened a ticket for adding that feature: [Expand \*\_calibration to higher order (#1847) · Issues · Dynare / dynare · GitLab](https://git.dynare.org/Dynare/dynare/-/issues/1847)
