question about smoother within only some certain shocks
Posted:
Wed Dec 07, 2016 9:03 am
by zhanshuo
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?
Re: question about smoother within only some certain shocks
Posted:
Wed Dec 07, 2016 5:50 pm
by jpfeifer
Could it be that you are looking for the
- Code: Select all
shock_decomposition
command?
Re: question about smoother within only some certain shocks
Posted:
Thu Dec 08, 2016 6:48 am
by zhanshuo
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.
Re: question about smoother within only some certain shocks
Posted:
Fri Dec 09, 2016 9:42 am
by jpfeifer
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