From 388d2186aa2919e92c0cbf52a89c9dda75455971 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 3 Oct 2024 18:33:37 +0200
Subject: [PATCH] :bug: fix number of sub_draws used

Revert of https://git.dynare.org/Dynare/dynare/-/commit/5424fde74ede37708a55ca96ef9c8403a371cc29
---
 matlab/estimation/metropolis_draw.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/estimation/metropolis_draw.m b/matlab/estimation/metropolis_draw.m
index 505d1dbeb6..7c41680989 100644
--- a/matlab/estimation/metropolis_draw.m
+++ b/matlab/estimation/metropolis_draw.m
@@ -68,7 +68,7 @@ if init
     mh_nblck = options_.mh_nblck;
     % set sub_draws option if empty
     if isempty(options_.sub_draws)
-        options_.sub_draws = min(options_.posterior_max_subsample_draws, ceil(.25*NumberOfDraws));
+        options_.sub_draws = min(options_.posterior_max_subsample_draws, ceil(NumberOfDraws*mh_nblck));
     else
         if options_.sub_draws>NumberOfDraws*mh_nblck
             skipline()
-- 
GitLab