Posterior statistics not computed with load_mh_file
Created by: MichaelSpece
Suggested labels: bug, estimation
Posterior statistics are not computed with load_mh_file. This can lead to a failure of existence of oo_.posterior_mean when attempting to forecast with load_mh_file. See also http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=4605. It seems this potential missingness could be remedied by replacing
else
load([M_.fname '_results'],'oo_');
end
with
else
load([M_.fname '_results'],'oo_');
if ~exist('oo_.posterior_mean', 'var')
oo_ = GetPosteriorParametersStatistics(estim_params_, M_, options_, bayestopt_, oo_);
end
end