I have produced the plot of GDP’s historical composition based on 10 shocks considered in my DSGE model.
Now, in order to produce a counterfactual scenarios, I have to remove the effect of one shock from historical decomposition and study what happens.
Is there a function that allows this exercise? I read a post in which some users suggest the calib_smoother function. Is the best way to perform this exercise? Is there an example that shows how to proced after the shock decomposition?