Twicking shock_decomposition in Dynare 4.1

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.

Twicking shock_decomposition in Dynare 4.1

Postby EconStudent » Fri May 31, 2013 7:51 pm

Hello everybody,

I'm estimating a medium-size model with measurement error and different shocks. I want to get an idea on how to graph only the contribution of certain shocks of interest to my series.
Suppose I have as variables : var1, var2, var3.
And suppose I have as shocks: eps1, eps2, eps3, measurement_err1, measurement_err2, measurement_err3.

The only command I've noticed to work for the shock_decomposition in Dynare 4.1 is:
shock_decomposition var1 var2 var3; The problem is that if you have many shocks, it plots all of them and the colors look too similar to tell apart.

How should I go if i wanted to see for var1 and var2 only the contribution of eps1 and eps2 for example. It has to be done in the 4.1 version.


Many thanks !!!
EconStudent
 
Posts: 8
Joined: Fri Feb 15, 2013 12:50 pm

Re: Twicking shock_decomposition in Dynare 4.1

Postby jpfeifer » Mon Jun 03, 2013 5:47 pm

The easiest way is to do the graph yourself by using the results stored in oo_.shock_decomposition. It should be a three-dimensional array where the first dimension is the endogenous variables, the second dimension the shocks, and the third dimension the period.
------------
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: Twicking shock_decomposition in Dynare 4.1

Postby EconStudent » Wed Jun 05, 2013 8:43 am

Thank you for your answer jpheifer, this will be of great help.
EconStudent
 
Posts: 8
Joined: Fri Feb 15, 2013 12:50 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests