Page 1 of 1
Multiple IRFs on 1 graph
Posted:
Tue Aug 31, 2010 5:39 pm
by samster
Hi:
Is it possible to have multiple IRFs on 1 graph to reflect different parameter values? Thanks.
Samster
Re: Multiple IRFs on 1 graph
Posted:
Tue Aug 31, 2010 6:48 pm
by jpfeifer
There is no way to implement this in Dynare directly. However, Dynare saves all impulse responses in the results structure oo_. You can always run the model for different parameter values, save the IRFs and then plot them yourself.
Re: Multiple IRFs on 1 graph
Posted:
Tue Aug 31, 2010 8:50 pm
by samster
Thanks:
I was able to do it very easily in Matlab; i merely copied and pasted the curves into 1 graph and matlab automatically adjusted the scales where necessary. On a more TRIVIAL note is there any way to create an impulse response graph where the shock has no impact on the variable? In other words can irfs be generated where the irf line is simple a horizontal line on the x-axis. As it stands Dynare does not generate any graph for such a case.
Re: Multiple IRFs on 1 graph
Posted:
Wed Sep 01, 2010 6:18 am
by jpfeifer
Again, you can plot them by hand as Dynare stores the IRF values in oo._irfs. Another way to let Dynare generally plot all IRFs, is to change its file stoch_simul.m. In my Dynare version, line 167 reads
- Code: Select all
if max(y(i_var(j),:)) - min(y(i_var(j),:)) > 1e-10
It tells Dynare to plot only IFS with amplitudes larger than 1e-10. If you change 1e-10 to 0, everything will be plotted.
Re: Multiple IRFs on 1 graph
Posted:
Tue Sep 07, 2010 5:10 pm
by samster
Thanks.
Re: Multiple IRFs on 1 graph
Posted:
Sat Sep 26, 2015 7:10 pm
by Shadi
I have a related question, I want to compute IRFs with a different parameter values but with holding steady state constant. In other words, I want to ignore the steady state effect of the change of parameter value. Is there away to modify Dynare codes to do that?
Thanks in advance
Re: Multiple IRFs on 1 graph
Posted:
Sun Sep 27, 2015 8:15 am
by jpfeifer
You are not supposed to do this. The effect of a parameter on the steady state cannot be separated from its effect on the dynamics. What you are trying to do will be wrong.
Re: Multiple IRFs on 1 graph
Posted:
Sun Sep 27, 2015 2:22 pm
by Shadi
Thanks for the reply,
I understand why you think it is wrong. However, this has been the norm in the monetary economics literature to evaluate the effect of financial frictions on the macroeconomic dynamics (See Bernanke, Gertler and Gilchrist (1999)). Part of the reasoning that I can think of is that the focus of these experiments is how the presence/absence of financial frictions affect the response of macroeconomic variables to various shocks in the short run, the long run effect on the steady state is simply not of interest for this particular literature.
Any suggestion about how this could be done in Dynare?
Re: Multiple IRFs on 1 graph
Posted:
Sun Sep 27, 2015 2:36 pm
by jpfeifer
Please provide the explicit reference/paragraph where you think that Bernanke, Gertler and Gilchrist (1999) ignored to effect of parameter changes on the decision rules.
Re: Multiple IRFs on 1 graph
Posted:
Sun Sep 27, 2015 3:15 pm
by Shadi
They mentioned that in section 5.2.1: Response to a monetary policy shock:
" In each picture the hatched line designates the "baseline" impulse response, generated by fixing the external finance premium at its steady state
level instead of allowing it to respond to changes in the capital-net worth ratio. In other words, the baseline simulations are based on a model with the same steady state as the complete model with imperfect credit markets, but in which the additional dynamics associated with the financial accelerator have been "turned off". "
In the model that I am working with, the equivalent of the financial accelerator is turned off by setting one particular parameter to zero(mu=0). Therefore, I am looking for ways to let dynare computes IRFs with mu=0 while keeping the steady state unchanged from the case where mu>0.
Re: Multiple IRFs on 1 graph
Posted:
Mon Sep 28, 2015 6:15 am
by jpfeifer
I think you are misinterpreting what the literature is doing. They do not compute decision rules off-equilibrium. Rather, they shut off dynamic channels that do not affect the steady state of the model. For example, in the RBC model with investment adjustment costs, shutting off adjustment costs will not alter the steady state.
It is the same in Bernanke/Gertler/Gilchrist. If you look at equation (4.17) it describes how the finance premium reacts to net worth. Everything is in deviations from steady state. As far as I understand it, they simply set nu to 0 so that the finance premium does not react. This will not affect the steady state as they correctly note.