# How IRFs are computed for the model like this?

**URL:** <https://forum.dynare.org/t/how-irfs-are-computed-for-the-model-like-this/2569>\
**Category:** Dynare help (legacy posts)\
**Created:** [16 June 2012 06:16 UTC](https://forum.dynare.org/t/how-irfs-are-computed-for-the-model-like-this/2569 "2012-06-16T06:16:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahnulxy](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@ahnulxy](https://forum.dynare.org/u/ahnulxy)\
**Post date:** [16 June 2012 06:16 UTC](https://forum.dynare.org/t/how-irfs-are-computed-for-the-model-like-this/2569/1 "2012-06-16T06:16:36Z")

</div>

For example, I just have 2 variables, a, b, in the model and one exogenous shock e\_m, which is iid standard normal.

a=0.6_a(-1)+0.4_a(+1)+b;

b=0.88\*b(-1)+e\_m;

it is easy to compute irf for variable “b”, but how irf is computed for variable “a” since there are lead and lag in the first equations?

---

<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:** [19 June 2012 12:12 UTC](https://forum.dynare.org/t/how-irfs-are-computed-for-the-model-like-this/2569/2 "2012-06-19T12:12:12Z")

</div>

Dynare computes the model solution to the system of equations you enter. This solution has a recursive state-space form from which IRFs are easily computed.
