From f7f100426d2c8d64b29e76fd87dc7aa0454ffe91 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Wed, 9 Mar 2011 14:43:28 +0100 Subject: [PATCH] bug fixing for mode_compute == 6 --- matlab/dynare_estimation_1.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m index 794b96177..79382763b 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -279,12 +279,12 @@ if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation end if ~options_.dsge_var [xparam1,PostVar,Scale,PostMean] = ... - gmhmaxlik('DsgeLikelihood',xparam1,bounds,options_.Opt6Numb,Scale,flag,MeanPar,CovJump,gend,data,... + gmhmaxlik('DsgeLikelihood',xparam1,[lb ub],options_.Opt6Numb,Scale,flag,MeanPar,CovJump,gend,data,... data_index,number_of_observations,no_more_missing_observations); fval = DsgeLikelihood(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations); else [xparam1,PostVar,Scale,PostMean] = ... - gmhmaxlik('DsgeVarLikelihood',xparam1,bounds,options_.Opt6Numb,Scale,flag,MeanPar,CovJump,gend); + gmhmaxlik('DsgeVarLikelihood',xparam1,[lb ub],options_.Opt6Numb,Scale,flag,MeanPar,CovJump,gend); fval = DsgeVarLikelihood(xparam1,gend); end options_.mh_jscale = Scale; @@ -305,12 +305,12 @@ if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation end if ~options_.dsge_var [xparam1,PostVar,Scale,PostMean] = ... - gmhmaxlik('DsgeLikelihood',xparam1,bounds,... + gmhmaxlik('DsgeLikelihood',xparam1,[lb ub],... options_.Opt6Numb,Scale,flag,PostMean,PostVar,gend,data,data_index,number_of_observations,no_more_missing_observations); fval = DsgeLikelihood(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations); else [xparam1,PostVar,Scale,PostMean] = ... - gmhmaxlik('DsgeVarLikelihood',xparam1,bounds,... + gmhmaxlik('DsgeVarLikelihood',xparam1,[lb ub],... options_.Opt6Numb,Scale,flag,PostMean,PostVar,gend); fval = DsgeVarLikelihood(xparam1,gend); end