command shock_decomposition in a calibrated model

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.

command shock_decomposition in a calibrated model

Postby Heniz.Wu » Sun Mar 19, 2017 12:16 pm

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);
Attachments
example1.mod
(1.57 KiB) Downloaded 64 times
Heniz.Wu
 
Posts: 6
Joined: Sun Mar 19, 2017 11:50 am

Re: command shock_decomposition in a calibrated model

Postby jpfeifer » Sun Mar 19, 2017 1:25 pm

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
------------
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: command shock_decomposition in a calibrated model

Postby Heniz.Wu » Tue Mar 21, 2017 5:43 am

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!
Heniz.Wu
 
Posts: 6
Joined: Sun Mar 19, 2017 11:50 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests