# Plotting Variance Decomposition After Simulation

**URL:** <https://forum.dynare.org/t/plotting-variance-decomposition-after-simulation/26728>\
**Category:** Stochastic simulations\
**Created:** [11 November 2024 04:12 UTC](https://forum.dynare.org/t/plotting-variance-decomposition-after-simulation/26728 "2024-11-11T04:12:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yw3864a](https://forum.dynare.org/letter_avatar_proxy/v4/letter/y/71c47a/32.png) [@yw3864a](https://forum.dynare.org/u/yw3864a)\
**Post date:** [11 November 2024 04:12 UTC](https://forum.dynare.org/t/plotting-variance-decomposition-after-simulation/26728/1 "2024-11-11T04:12:22Z")

</div>

Hello Dynare community,

I’m currently working on a DSGE model simulation and facing challenges when attempting to plot the variance decomposition after the simulation. My issue is that the oo\_ structure does not generate the expected output for graphs.

I am using the following code for my simulation:

stoch\_simul(order=1, irf=30, periods=1000000, conditional\_variance\_decomposition=[1 2 5 10 50 10000]) yH yX yN yA gdp;

However, I am unable to find the conditional variance decomposition results in the oo\_ structure. It appears that the necessary fields for plotting the results are not being generated.

I have attached my full code for reference (please find the attachment). I am not sure where the issue lies. Any insights or suggestions would be greatly appreciated.

Thank you for your assistance!

Best,  
Yamoi  
[model\_sim\_bayesian11\_10.mod](https://forum.dynare.org/uploads/short-url/25sUGl1fZPgPxV5a2auXsiqupRi.mod) (10.4 KB)

---

<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:** [11 November 2024 08:22 UTC](https://forum.dynare.org/t/plotting-variance-decomposition-after-simulation/26728/2 "2024-11-11T08:22:46Z")

</div>

Conditional variance decompositions can only be computed based on theoretical moments. You need to drop the `periods` option.
