Fix bug when calling non-Bayesian smoother after Bayesian estimation

Because xparam1 is used by the smoother, but xparam was set to the posterior mean, the non-Bayesian smoother results were based on the parameters at the mode, which are stored in xparam1.
time-shift
Johannes Pfeifer 2014-10-15 09:49:07 +02:00
parent 935f74883d
commit 2c01113e8c
1 changed files with 2 additions and 2 deletions

View File

@ -855,8 +855,8 @@ if (any(bayestopt_.pshape >0 ) && options_.mh_replic) || ...
end
prior_posterior_statistics('posterior',dataset_,dataset_info);
end
xparam = get_posterior_parameters('mean');
M_ = set_all_parameters(xparam,estim_params_,M_);
xparam1 = get_posterior_parameters('mean');
M_ = set_all_parameters(xparam1,estim_params_,M_);
end
end