Dear all,
Has anyone tried successfully to apply larry Christiano's code to calculate the shock decomposition posted on this forum?
His post was:
viewtopic.php?f=1&t=1381&p=2192#p2192 *
I have tried to apply what he suggests, but I do not get the right result.
It works fine for all the shocks together.
But when I do one shock at a time it does not work since the sum of all the contributions do not add up to the observed data (or to the result with all the shocks together).
My problem is that his code seems incomplete, since some of the variables used are defined elsewhere, and it is not completely clear to me what they refer to. Therefore, I am not sure if it is that I am filling the gaps wrongly or that there is something else wrong with my code.
Thanks,
Pablo
NB: * new url