From 4d9426cf6f58b0d47ea5d65e52642046000db9b6 Mon Sep 17 00:00:00 2001 From: Michel Juillard <michel.juillard@mjui.fr> Date: Thu, 15 Mar 2012 15:32:31 +0100 Subject: [PATCH] fixing bug in estimation by maximum likelihood (cherry picked from commit 5d4d318bc7f26443a417b7762c0482637d25dce4) --- 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 84c32369f..fc4ec91fc 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -579,7 +579,7 @@ if any(bayestopt_.pshape > 0) && ~options_.mh_posterior_mode_estimation disp(sprintf('Log data density [Laplace approximation] is %f.',md_Laplace)) disp(' ') end -elseif ~any(bayestopt_.pshape > 0) && options_.mh_posterior_mode_estimation +elseif ~any(bayestopt_.pshape > 0) && ~options_.mh_posterior_mode_estimation disp(' ') disp('RESULTS FROM MAXIMUM LIKELIHOOD') tstath = zeros(nx,1); -- GitLab