1 p.c. Bayesian IRF Shocks

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.

1 p.c. Bayesian IRF Shocks

Postby LRC » Thu Sep 18, 2014 2:29 pm

Hello Dynare User,

I am new to Dynare.
Can any one please tell me how to add a 1 p.c. shock (from steady steady state of a log-linearised model) to a variable in Bayesian IRF.
Although I changed the shock values in the Shocks block, I always get 1 standard error shock for IRFs.

I cant find this in the manual or user guide.

Thanking you.
LRC
 
Posts: 3
Joined: Thu Sep 18, 2014 2:21 pm

Re: 1 p.c. Bayesian IRF Shocks

Postby jpfeifer » Mon Sep 22, 2014 9:13 am

You need to hack Dynare 4.4.3 a bit. First, before the estimation command, put
Code: Select all
options_.relative_irf=1;

Then, in PosteriorIRF_core1.m, delete the multiplication by 100 in
Code: Select all
if options_.relative_irf
                y = 100*y/SS(i,i);
            end

That way, you will get a shock size of 1, which can be interpreted as 1 percent in log-linear models. For example, if you get a response of output of 4 after a TFP shock, it means output increases by 4% following a 1% TFP shock (you will see TFP jump to 1).

If you do not delete the 100 and only use the relative_irf option, you will get the percent response to a 100% shock.
------------
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: 1 p.c. Bayesian IRF Shocks

Postby LRC » Wed Sep 24, 2014 7:20 am

Dear jpfeifer
Thank you very much for your reply.

It works when I use "options_.relative_irf=1;" before estimation command.

However, the other trick to get 1 p.c. does not work. What I did was, as you mentioned, removed "100" from the PosteriorIRF_core1.m file. The file is located at c:Dynare\4.4.3\matlab folder. But still I get values with 100 p.c.

Is it the correct file that I should amend? Please let me know.

Thanking you.

LRC
LRC
 
Posts: 3
Joined: Thu Sep 18, 2014 2:21 pm

Re: 1 p.c. Bayesian IRF Shocks

Postby jpfeifer » Wed Sep 24, 2014 11:42 am

To clarify: with the 100 in a linearized model, the shock size is 100, without the 100 the shock size is 1. This 1 can be interpreted as one percent if you interpret all other IRFs also in percent. If you want to interpret 0.01 as 1%, you need to replace the "times 100" with a "divided by 100" to get a shock size of 0.01.
------------
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: 1 p.c. Bayesian IRF Shocks

Postby LRC » Thu Sep 25, 2014 8:24 am

Dear jpfeifer,
Thank you so much, it works.
LRC

P.S.: Earlier I have changed the PosteriorIRF_core1.m file in Dynare 4.4.3, thinking I was working on Dynare 4.4.3. Now I realized, although I installed Dynare 4.4.3 few weeks ago, still I had been working on Dynare 4.4.0. The IRF issue allowed me to reveal this issue too!. Thanks.
LRC
 
Posts: 3
Joined: Thu Sep 18, 2014 2:21 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests