Dynare relative irf

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.

Dynare relative irf

Postby xujh03 » Fri Mar 25, 2011 6:21 pm

Hi, I try to use dynare to relative irf to plot impulse response function. But it seems that the result is wrong.
For example, say two variables k and n.
If k change 68%, and n change 32% then I define knratio=k/n
Dynare told me that this knratio change -3.1%

I thought that use dynare relative irf should be the same as log linearization. So that I can put my model into the code directly as it shows in model.
But it seems that it is wrong.
Is there anyone who has the same problem as me?
thanks
best
JH
xujh03
 
Posts: 9
Joined: Sat Jan 30, 2010 2:39 pm

Re: Dynare relative irf

Postby jpfeifer » Fri Mar 25, 2011 8:13 pm

Hi,
relative_irf only normalizes the variables by the shock size so that the shock sizes are comparable. It does not rescale the other variables by their steady state values to make them percentage deviations!

The respective Dynare code for this option used in stoch_simul.m is
Code: Select all
 
if options_.relative_irf
    y = 100*y/cs(i,i);
end

where y is the standard IRF without relative_irf and cs is the cholesky factorization of the covariance matrix of the shocks, i.e. the IRFs are scaled by the standard deviation of the respective shock. If you want the model to be log-linearized, you have to put everything in exp() (search the forum).
------------
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: Dynare relative irf

Postby GOODLUCK » Mon Jan 06, 2014 6:48 pm

So, does it mean that relative irf could be used when comparing one variable's responses to different kind of shocks while standard irf could be used when explaining variables' responses to one shock?
GOODLUCK
 
Posts: 16
Joined: Mon Dec 30, 2013 7:40 pm

Re: Dynare relative irf

Postby jpfeifer » Tue Jan 07, 2014 10:18 am

Yes and no. It always depends on the interpretation you are after. If you want to have the same unit shock, you can use it. If you want to compare one standard deviation shocks, then not.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests