From 20b0fc8bacea9657a0cb0d70231f983e72099d37 Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Fri, 3 Feb 2017 12:59:34 +0100 Subject: [PATCH] update mh_mode with slice and load_mh_file --- matlab/marginal_density.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/marginal_density.m b/matlab/marginal_density.m index 32880f34a..a25ede6a3 100644 --- a/matlab/marginal_density.m +++ b/matlab/marginal_density.m @@ -58,7 +58,7 @@ lpost_mode = posterior_kernel_at_the_mode; xparam1 = posterior_mean; hh = inv(SIGMA); fprintf(' Done!\n'); -if ~isfield(oo_,'posterior_mode') +if ~isfield(oo_,'posterior_mode') || (options_.mh_replic && isequal(options_.posterior_sampler_options.posterior_sampling_method,'slice')) oo_=fill_mh_mode(posterior_mode',NaN(npar,1),M_,options_,estim_params_,bayestopt_,oo_,'posterior'); end