From 5d4d318bc7f26443a417b7762c0482637d25dce4 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Thu, 15 Mar 2012 15:32:31 +0100 Subject: [PATCH] fixing bug in estimation by maximum likelihood --- 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 e96014dd5..bfd81acf1 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -512,7 +512,7 @@ if any(bayestopt_.pshape > 0) && ~options_.mh_posterior_mode_estimation disp(sprintf('Log data density [Laplace approximation] is %f.',oo_.MarginalDensity.LaplaceApproximation)) 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);