question about smoother within only some certain 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.

question about smoother within only some certain shocks

Postby zhanshuo » Wed Dec 07, 2016 9:03 am

Hi ,everyone,I have no idea how to shut off certain shocks in estimation command.
If I only want to simulate series of endogenous variables using smoother, within only some shocks, which are among the whole set of shocks that have been used to estimation. And during that procedure, the parameters that has been estimated should be the same. In this way the relative importance of certain shocks could be judged.
So what should I do?
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: question about smoother within only some certain shocks

Postby jpfeifer » Wed Dec 07, 2016 5:50 pm

Could it be that you are looking for the
Code: Select all
shock_decomposition
command?
------------
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: question about smoother within only some certain shocks

Postby zhanshuo » Thu Dec 08, 2016 6:48 am

Yeah, that is what you have done in replication of the paper ,Jermann, Urban and Vincenzo Quadrini. 2012. "Macroeconomic Effects of Financial Shocks."
as is listed below.

shock_decomposition(parameter_set=posterior_mode) y_obs;
timeline=1984:0.25:2010.25;
y_pos=strmatch('y_obs',M_.endo_names,'exact');
xi_pos=strmatch('eps_xi',M_.exo_names,'exact');

However, I am confused about maybe there is another potential method to work that out. First do the estimation command and get the estimated parameters, and then use the calib_smoother to get the smoothed variables, with only certain shocks. As in the case of Jermann, Urban and Vincenzo Quadrini. 2012, first do estimation and do calib_smoother with the given parameters but with only the financial shock.
I do not know whether this method is reasonable and whether it will give the same result as by shock_decompositon.
And if possible , could you give me an example paper on the usage of calib_smoother?
Thanks a lot.
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: question about smoother within only some certain shocks

Postby jpfeifer » Fri Dec 09, 2016 9:42 am

The smoother only gives you the best estimates of the states and the shocks. It does not simulate the counterfactual series if only one of these shocks had happened. That is what shock_decomposition does. It first runs the smoother and then computes the respective counterfactual series if there were no other shocks except for one.

An example for the calib_smoother is at https://github.com/DynareTeam/dynare/blob/master/tests/fs2000/fs2000_calib.mod
------------
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: Google [Bot] and 5 guests