Page 1 of 1

command shock_decomposition in a calibrated model

PostPosted: Sun Mar 19, 2017 12:16 pm
by Heniz.Wu
Hi Prof. and to all,

I have seen some codes about the apply of the command shock_decomposition after Bayesian estimation based on MCMC.Although that looks natural,but i prefer to use that in a calibrated model.It seems like that i meet some questions .I think the Instructions for use shock_decomposition in Reference Manual provide less details.There is a sample example.

Thanks a lot for any suggestions I can get !

Incorrect use of dynare_estimation_init (line 72)
VAROBS statement is missing!

Error evaluate_smoother (line 66)
     [Dataset_, dataset_info, xparam1, hh, m_,
     Options_, oo_, estim_params_, bayestopt_] =
     Dynare_estimation_init (var_list, M_.fname, [],
     M_, options_, oo_, estim_params_, bayestopt_);

Error shock_decomposition (line 71)
[Oo, junk1, junk2, smoothed_Variables_deviation_from_mean]
=
Evaluate_smoother (parameter_set, varlist, M_, oo_, options_, bayestopt_, estim_params_);

Error example1 (line 172)
Oo_ =
Shock_decomposition (M_, oo_, options_, var_list_, bayestopt_, estim_params_);

Error dynare (line 223)
Evalin ('base', fname);

Re: command shock_decomposition in a calibrated model

PostPosted: Sun Mar 19, 2017 1:25 pm
by jpfeifer
The
Code: Select all
shock_decomposition

requires data, because otherwise there is nothing to decompose. An example for a calibrated model is at
https://github.com/DynareTeam/dynare/blob/master/tests/shock_decomposition/example1_calib_shock_decomp.mod
with the data being at
https://github.com/DynareTeam/dynare/blob/master/tests/shock_decomposition/example1_calib_shock_decomp_data.mat

Re: command shock_decomposition in a calibrated model

PostPosted: Tue Mar 21, 2017 5:43 am
by Heniz.Wu
jpfeifer wrote:The
Code: Select all
shock_decomposition

requires data, because otherwise there is nothing to decompose. An example for a calibrated model is at
https://github.com/DynareTeam/dynare/blob/master/tests/shock_decomposition/example1_calib_shock_decomp.mod
with the data being at
https://github.com/DynareTeam/dynare/blob/master/tests/shock_decomposition/example1_calib_shock_decomp_data.mat


Thank you very much for the answer and helpful comments!