Question about shock_decomposition

Dear prof. jpfeifer,
When I use shock_decomposition after stoch_simul(periods=2100, irf=40, irf_shocks=(epoil)) , I get a picture contains all the shocks mentioned in the previous code. How can I modify shock_decomposition to get a shock decomposition that only includes the shocks I mentioned in irf_shocks ?

Usually in shock decomposition Dynare output picture shows the shares of different shocks in variations of a certain variable such as Y , C , I and so on.

Each shock in the model for example monetary shock , tax shock, oil price shock , … has its own share in variations of a certain variable in a specified period of time.

Can you upload your dynare mod file for more information?

code2024315.zip (171.4 KB)

What exactly are you trying to do? Just change the plot? Or change the shocks that are allowed to affect the data? Also note that your data looks weird. I spot a trend and a seasonal pattern.

Change the shocks that are allowed to affect the data.

Thank you, professor !I will check my data !

Then you need to set the variance of those shocks to 0 in the shocks-block.