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
parent
935f74883d
commit
2c01113e8c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue