From d01846e5be9b12df5584ad98f8bd0ce8f9a56b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Tue, 10 Mar 2020 14:13:49 +0100 Subject: [PATCH] Fix incorrect test for options_.posterior_sampler_options.posterior_sampling_method Thanks to checkcode(). --- matlab/dynare_estimation_1.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m index a4ac05d0c..e27931d1d 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -439,7 +439,7 @@ if (any(bayestopt_.pshape >0 ) && options_.mh_replic) || ... end % Tunes the jumping distribution's scale parameter if options_.mh_tune_jscale.status - if options_.posterior_sampler_options.posterior_sampling_method=='random_walk_metropolis_hastings' + if strcmp(options_.posterior_sampler_options.posterior_sampling_method, 'random_walk_metropolis_hastings') options = options_.mh_tune_jscale; options.rwmh = options_.posterior_sampler_options.rwmh; options_.mh_jscale = calibrate_mh_scale_parameter(objective_function, ...