Differences between revisions 5 and 6
Revision 5 as of 2010-09-13 14:31:38
Size: 887
Comment:
Revision 6 as of 2011-02-07 09:31:23
Size: 1318
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
This instruction must be given after an {{{estimation}}} statement. If only the posterior mode (or maximum likelihood) is computed, the estimated parameters are set to the corresponding values. If Metropolis is run (or {{{load_mh_file}}} option is used) the estimated parameters are set to the posterior mean. This instruction must be given after an {{{estimation}}} statement.

Since Dynare 4.2, it is possible to select the parameter values used to compute the decomposition, with the {{{parameter_set}}} option:
{{{
shock_decomposition(parameter_set = prior_mode);
}}}
This option can take five values: {{{prior_mode}}}, {{{prior_mean}}}, {{{posterior_mean}}}, {{{posterior_mode}}}, {{{posterior_median}}}.


If this option has not been specified, then the parameter set is selected according to the following rules:
 * If only the posterior mode (or maximum likelihood) has been computed, the parameters are set to the corresponding values;
 * If Metropolis has been run (or {{{load_mh_file}}} option is used) the parameters are set to the posterior mean.
Line 16: Line 27:
 * We need to add a mechanism to be able to group together different exogenous variables and give them an appropriate label for the decomposition graph.  * A mechanism for grouping together different exogenous variables and giving them an appropriate label for the decomposition graph.

Shock decomposition

A new function computes and displays shock decomposition according to the model for a given sample.

Syntax

shock_decomposition;

This instruction must be given after an estimation statement.

Since Dynare 4.2, it is possible to select the parameter values used to compute the decomposition, with the parameter_set option:

shock_decomposition(parameter_set = prior_mode);

This option can take five values: prior_mode, prior_mean, posterior_mean, posterior_mode, posterior_median.

If this option has not been specified, then the parameter set is selected according to the following rules:

  • If only the posterior mode (or maximum likelihood) has been computed, the parameters are set to the corresponding values;
  • If Metropolis has been run (or load_mh_file option is used) the parameters are set to the posterior mean.

To be added

  • A mechanism for grouping together different exogenous variables and giving them an appropriate label for the decomposition graph.
  • The ability to compute shock decomposition for calibrated models.

DynareWiki: ShockDecomposition (last edited 2011-02-07 09:31:32 by SébastienVillemot)