# Impulse Response Function (IRF) for Markov-switching by the mean VAR

**URL:** <https://forum.dynare.org/t/impulse-response-function-irf-for-markov-switching-by-the-mean-var/10932>\
**Category:** BVAR\
**Created:** [29 October 2017 17:07 UTC](https://forum.dynare.org/t/impulse-response-function-irf-for-markov-switching-by-the-mean-var/10932 "2017-10-29T17:07:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathieu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@Mathieu](https://forum.dynare.org/u/Mathieu)\
**Post date:** [29 October 2017 17:07 UTC](https://forum.dynare.org/t/impulse-response-function-irf-for-markov-switching-by-the-mean-var/10932/1 "2017-10-29T17:07:42Z")

</div>

Hi everybody,

I am new in Dynare and Matlab. I code in another language but it does not allow me to do what I want.

I want to produce impulse response function in a Markov Switching allowing only the mean to switch taking into account the possibility of regime change (I may also look IRF assuming that the regime is the same).

Does the ms\_irf procedure allow us to do that? And what are the changes to make in order to produce the two type of IRF mentioned above?

My second question regards the fact, that I already estimated the different parameters of my model and is it possible to plus manually the parameter into the procedure? And how can I do that

Thank you so much,

---

<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:** [1 November 2017 01:14 UTC](https://forum.dynare.org/t/impulse-response-function-irf-for-markov-switching-by-the-mean-var/10932/2 "2017-11-01T01:14:53Z")

</div>

No, that is currently not feasible. We always allow the mean and the slope to switch, or just the variance, or both. You cannot put a restriction that only the constant changes.

---

<div class="post-metadata">

**Author:** ![Mathieu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@Mathieu](https://forum.dynare.org/u/Mathieu)\
**Post date:** [25 November 2017 22:45 UTC](https://forum.dynare.org/t/impulse-response-function-irf-for-markov-switching-by-the-mean-var/10932/3 "2017-11-25T22:45:01Z")

</div>

Thank you for your answer.

Mathieu
