From 655b706ae4bc647492caef46eace5c0e2992b9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Karam=C3=A9?= <frederic.karame@univ-lemans.fr> Date: Fri, 24 May 2024 14:39:45 +0200 Subject: [PATCH] Bug fix in the call of the non_linear_dsge_likelihood function. (cherry picked from commit 0b5062a977a76d9d5d53cf2bf886ac7297b4efe1) --- matlab/estimation/smc/hssmc.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/estimation/smc/hssmc.m b/matlab/estimation/smc/hssmc.m index 1ab0d76893..56141312a5 100644 --- a/matlab/estimation/smc/hssmc.m +++ b/matlab/estimation/smc/hssmc.m @@ -43,7 +43,7 @@ function mdd = hssmc(TargetFun, mh_bounds, dataset_, dataset_info, options_, M_, Prior = dprior(bayestopt_, options_.prior_trunc); % Set function handle for the objective - eval(sprintf('%s = @(x) %s(x, dataset_, dataset_info, options_, M_, estim_params_, bayestopt_, mh_bounds, oo_.dr , oo_.steady_state, oo_.exo_steady_state, oo_.exo_det_steady_state, []);', 'funobj', func2str(TargetFun))); + eval(sprintf('%s = @(x) %s(x, dataset_, dataset_info, options_, M_, estim_params_, bayestopt_, mh_bounds, oo_.dr , oo_.steady_state, oo_.exo_steady_state, oo_.exo_det_steady_state);', 'funobj', func2str(TargetFun))); mlogit = @(x) .95 + .1/(1 + exp(-16*x)); % Update of the scale parameter -- GitLab