Set options_.smoother=1 if run on calibrated model.

Otherwise, the error in dynare_estimation_init is triggered as no estimated_params block is present and the smoother option is nowhere set.
time-shift
Johannes Pfeifer 2013-07-22 19:29:55 +02:00
parent 592c2c8f77
commit 1b425520c5
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ global options_ M_ bayestopt_ oo_ estim_params_ % estim_params_ may be emty
persistent dataset_
if ischar(parameters) && strcmp(parameters,'calibration')
options_.smoother=1;
end
if isempty(dataset_) || isempty(bayestopt_)
[dataset_,xparam1, M_, options_, oo_, estim_params_,bayestopt_] = dynare_estimation_init(var_list, M_.fname, [], M_, options_, oo_, estim_params_, bayestopt_);
end