... compare model-implied statistics with those as in the data. I generate
samples of the same length as the data (after a burn-in period of 100 observations)
from the model economy using 1000 posterior draws. Table 30 reports the median of
the model-implied moments and the 90% credible intervals for raw data and Table 31
that for the cyclical component.
posterior_function
stoch_simul
posterior_function(OPTIONS) ; [Command]
% Options
function = FUNCTION_NAME
sampling_draws = INTEGER
posterior_function(function='posterior_function_demo', sampling_draws=500);
estimation(options.....)
posterior_function(function='posterior_function_demo', sampling_draws=500);
Stoch_simul(options....)
posterior_function_demo
posterior_function_demo
% set the parameters draws to the model structure
M_ = set_all_parameters(xparam1,estim_params_,M_);
% compute the steady state for the parameter draw written to M_
options_.noprint=1;
options_.drop=100;
options_.periods=300;
var_list=char('gp_obs','gy_obs');
[ys, oo_] = simult(oo_.dr.ys,oo_.dr,M_,options_,oo_);
oo_=disp_moments(ys,var_list,M_,options_,oo_);
%set second part of output cell
output_cell{1,1}=oo_.mean;
options_.periods
options_.drop
options_.drop=100;
options_.periods=250;
stoch_simul
loglinear
posterior_function(function='posterior_function_demo', sampling_draws=500);
Estimation::mcmc: Posterior (dsge) IRFs...
Estimation::mcmc: Posterior IRFs, done!
Estimation::mcmc: Total number of MH draws per chain: 160000.
Estimation::mcmc: Total number of generated MH files: 1.
Estimation::mcmc: I'll use mh-files 1 to 1.
Estimation::mcmc: In MH-file number 1 I'll start at line 32001.
Estimation::mcmc: Finally I keep 128000 draws per chain.
Index exceeds matrix dimensions.
Error in BggGKlinear (line 1182)
if exist('estim_params_', 'var') == 1
Error in dynare (line 223)
evalin('base',fname) ;
oo_.posterior_function_results
oo_.posterior_function_results
var_list= char(... );
options_.periods=250;
oo_.posterior_function_results
posterior_function_demo.m
output_cell{1,1}=oo_.mean;
var_list
ys
options_.hpfilter=1600;
Users browsing this forum: No registered users and 6 guests