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
parent
592c2c8f77
commit
1b425520c5
|
@ -46,6 +46,10 @@ global options_ M_ bayestopt_ oo_ estim_params_ % estim_params_ may be emty
|
||||||
|
|
||||||
persistent dataset_
|
persistent dataset_
|
||||||
|
|
||||||
|
if ischar(parameters) && strcmp(parameters,'calibration')
|
||||||
|
options_.smoother=1;
|
||||||
|
end
|
||||||
|
|
||||||
if isempty(dataset_) || isempty(bayestopt_)
|
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_);
|
[dataset_,xparam1, M_, options_, oo_, estim_params_,bayestopt_] = dynare_estimation_init(var_list, M_.fname, [], M_, options_, oo_, estim_params_, bayestopt_);
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue