Manually compute variance decomposition (after estimation)

Dear Prof Johannes,

Given that the option moments_varendo gives variance decomposition of estimation, but it will compute over the total MH sampling. Preferably, I would like to ask for manually compute a subset of MH blocks, and compare among them. I know there is a function:


, yet I am not sure understanding how it works. Could you please give me an example of this function?

Thank you and best regards,

Why exactly are you trying to do this? You could use the posterior_function-command. I did so using and