counterfactual scenarios

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.

counterfactual scenarios

Postby lin123 » Tue Apr 19, 2016 9:52 am

Hello,

Do you know if there is a Dynare command or procedure to do counterfactual scenarios like the one presented in pages 36-38 of the attached paper? The authors substitute zero values for some selected estimated shocks during a given period and then conduct unconditional forecasts.

I will appreciate so much any help.

Best,

Lin
Attachments
Brzoza-Brzezina & Makarski.pdf
please read highlighted parts on pages 37 and 38
(1.71 MiB) Downloaded 255 times
lin123
 
Posts: 22
Joined: Thu Apr 09, 2015 1:33 pm

Re: counterfactual scenarios

Postby jpfeifer » Thu Apr 21, 2016 1:24 pm

You need to first use the shock_decomposition command, which will give you both the initial conditions and the historical shocks. Then, you need to use the simult_-function. You start at the initial values and simulate with the shock series until the point where you set all shocks except for the one you want to consider to 0.
------------
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: counterfactual scenarios

Postby lin123 » Fri Apr 22, 2016 8:35 am

Thanks, Professor Pfeifer.
I am looking for this command in the Dynare manual and I dont find it.
Is there a web page of link where I can see this command's options.
Thanks in advance,
Lin
lin123
 
Posts: 22
Joined: Thu Apr 09, 2015 1:33 pm

Re: counterfactual scenarios

Postby jpfeifer » Fri Apr 22, 2016 9:29 am

------------
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: counterfactual scenarios

Postby lin123 » Mon Apr 25, 2016 4:59 pm

Professor Johannes,

First of all, thanks for your response.

I had a look to the code posted in the link you provided before. However, I had some questions regarding the simul_ command. As you say, the shock decomposition command gives us the smoothed shocks, together with the smoothed variables, which are the summation of the smoothed shocks and the “initial conditions”.

Considering that last statement, my question is: can I replicate the smoothed (and observable) variables’ paths if the simul_’s third input (ex_) is the smoothed shocks matrix generated by the shock decomposition exercise?

I am asking this, because simul_ does not use all the initial values given by the shock decomposition command (the first simul_’s input is just a vector n*1, where n is the number of endogenous variables plus auxiliary variables for lags and leads).

Sorry if I misunderstood something you say in your last replay.

Many thanks in advance for your help,

Lin.
lin123
 
Posts: 22
Joined: Thu Apr 09, 2015 1:33 pm

Re: counterfactual scenarios

Postby jpfeifer » Fri Apr 29, 2016 9:29 am

Sorry, I was wrong. You need the calib_smoother to extract the smoothed shocks.
------------
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 contributions and examples

Who is online

Users browsing this forum: No registered users and 4 guests