Can the code of shock decomposition work for three order per

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Can the code of shock decomposition work for three order per

Postby Matthew » Thu Dec 29, 2016 3:04 am

I am using three order perturbation method to solve the model. I want to quantify the relative importance of each shock, so performing a historical decom position of some observable variables is sensible. But I do not know if dynare can do it.
Matthew
 
Posts: 4
Joined: Thu Dec 29, 2016 2:49 am

Re: Can the code of shock decomposition work for three order

Postby jpfeifer » Thu Dec 29, 2016 7:11 am

The shock_decomposition relies on the linearity at first order so that the actual observations can be decomposed into the individual contributions. At higher order, that decomposition does not work anymore, because the individual contributions are not additive anymore as there are interaction effects between the shocks. The same applies to the variance decomposition. What you can always do is simulate the model at higher order with only one shock at a time. But for that you would need to run a particle smoother, not the Kalman smoother underlying the shock_decomposition command.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Can the code of shock decomposition work for three order

Postby Matthew » Thu Dec 29, 2016 7:26 am

jpfeifer wrote:The shock_decomposition relies on the linearity at first order so that the actual observations can be decomposed into the individual contributions. At higher order, that decomposition does not work anymore, because the individual contributions are not additive anymore as there are interaction effects between the shocks. The same applies to the variance decomposition. What you can always do is simulate the model at higher order with only one shock at a time. But for that you would need to run a particle smoother, not the Kalman smoother underlying the shock_decomposition command.

Thank you for your reply! So, what you mean is that shock_decomposition command can not work in higher order model, and this command only use kalman filtering. Is my understanding right?
Another question is why simulating the model at higher order only works for one shock at a time. Many thanks!
Last edited by Matthew on Thu Dec 29, 2016 7:47 am, edited 1 time in total.
Matthew
 
Posts: 4
Joined: Thu Dec 29, 2016 2:49 am

Re: Can the code of shock decomposition work for three order

Postby jpfeifer » Thu Dec 29, 2016 7:45 am

Whatever you do, the shock_decomposition command will be based on the Kalman smoother, i.e.
Code: Select all
order=1
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Can the code of shock decomposition work for three order

Postby Matthew » Thu Dec 29, 2016 7:49 am

jpfeifer wrote:Whatever you do, the shock_decomposition command will be based on the Kalman smoother, i.e.
Code: Select all
order=1

Another question is why simulating the model at higher order only works for one shock at a time. Many thanks!
Matthew
 
Posts: 4
Joined: Thu Dec 29, 2016 2:49 am

Re: Can the code of shock decomposition work for three order

Postby jpfeifer » Thu Dec 29, 2016 8:47 am

Once you have the values of the shocks, you can simulate any combination of shocks you like. You were asking for shock_decomposition, which provides the contribution of a single shocks. If you are interested in interaction effects of several shocks, you can simulate the them jointly.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Can the code of shock decomposition work for three order

Postby Matthew » Thu Dec 29, 2016 10:20 am

jpfeifer wrote:Once you have the values of the shocks, you can simulate any combination of shocks you like. You were asking for shock_decomposition, which provides the contribution of a single shocks. If you are interested in interaction effects of several shocks, you can simulate the them jointly.

Thanks! It's really helpful.
Matthew
 
Posts: 4
Joined: Thu Dec 29, 2016 2:49 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 5 guests