# Shock decomposition: information

**URL:** <https://forum.dynare.org/t/shock-decomposition-information/22781>\
**Category:** Stochastic simulations\
**Created:** [20 July 2023 15:48 UTC](https://forum.dynare.org/t/shock-decomposition-information/22781 "2023-07-20T15:48:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cro](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/e5b9ba/32.png) [@Cro](https://forum.dynare.org/u/Cro)\
**Post date:** [20 July 2023 15:48 UTC](https://forum.dynare.org/t/shock-decomposition-information/22781/1 "2023-07-20T15:48:54Z")

</div>

Hello

oo\_.shock decomposition shows the results as val(:,:,i), where i is time. In what order do variables and shocks appear here? Where can I see assigned numbers for rows (say row 1 is variable x) and columns (column 1 is shock z).

Thanks

---

<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:** [20 July 2023 17:24 UTC](https://forum.dynare.org/t/shock-decomposition-information/22781/2 "2023-07-20T17:24:52Z")

</div>

See

> [@Plottting shock decompositions](https://forum.dynare.org/t/plottting-shock-decompositions/12652/4):
>
> From the manual The results are stored in the field oo\_.shock\_decomposition, which is a three dimensional array. The first dimension contains the M\_.endo\_nbr endogenous variables. The second dimension stores in the first M\_.exo\_nbr columns the contribution of the respective shocks. Column M\_.exo\_nbr+1 stores the contribution of the initial conditions, while column M\_.exo\_nbr+2 stores the smoothed value of the respective endogenous variable in deviations from their steady state, i.e. the mean an…

---

<div class="post-metadata">

**Author:** ![Cro](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/e5b9ba/32.png) [@Cro](https://forum.dynare.org/u/Cro)\
**Post date:** [21 July 2023 21:42 UTC](https://forum.dynare.org/t/shock-decomposition-information/22781/3 "2023-07-21T21:42:50Z")

</div>

Thank you
