From ee2545f84d6a7de87850974d665a83c5bab3014d Mon Sep 17 00:00:00 2001
From: Willi Mutschler <willi@mutschler.eu>
Date: Thu, 21 Dec 2023 22:21:53 +0100
Subject: [PATCH] Fixes for CET tests on Octave

- the mode file was previously saved as '-v7.3', now it is '-v6'
- mode_compute=1 and additional_optimizer=1 do not work under Octave
---
 tests/estimation/method_of_moments/CET/cet_original_mode.mat | 4 ++--
 tests/estimation/method_of_moments/CET/cet_rwmh.mod          | 2 +-
 tests/estimation/method_of_moments/CET/cet_slice.mod         | 2 +-
 tests/estimation/method_of_moments/CET/cet_tarb.mod          | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/estimation/method_of_moments/CET/cet_original_mode.mat b/tests/estimation/method_of_moments/CET/cet_original_mode.mat
index 6f804b6dc1..4ca20005a7 100644
--- a/tests/estimation/method_of_moments/CET/cet_original_mode.mat
+++ b/tests/estimation/method_of_moments/CET/cet_original_mode.mat
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:5d6cdcc7cfa32ee9128b0c457798034ffc01024679bcc43f7cbb4ac3ce1840bb
-size 15040
+oid sha256:1c481cb8a2a86626645d8453e803ab35920941cb277158c230ae4de421c1358a
+size 4752
diff --git a/tests/estimation/method_of_moments/CET/cet_rwmh.mod b/tests/estimation/method_of_moments/CET/cet_rwmh.mod
index c83515690f..c6a013c38f 100644
--- a/tests/estimation/method_of_moments/CET/cet_rwmh.mod
+++ b/tests/estimation/method_of_moments/CET/cet_rwmh.mod
@@ -83,7 +83,7 @@ method_of_moments(mom_method = irf_matching
 %, mode_check_neighbourhood_size
 %, mode_check_number_of_points
 , mode_check_symmetric_plots = 0
-, mode_compute = 1
+, mode_compute = 4
 , mode_file = cet_original_mode
 %, nobs
 %, no_posterior_kernel_density
diff --git a/tests/estimation/method_of_moments/CET/cet_slice.mod b/tests/estimation/method_of_moments/CET/cet_slice.mod
index 6316c9bead..f96a564e32 100644
--- a/tests/estimation/method_of_moments/CET/cet_slice.mod
+++ b/tests/estimation/method_of_moments/CET/cet_slice.mod
@@ -192,7 +192,7 @@ method_of_moments(mom_method = irf_matching
 , mh_replic=10
 , plot_priors = 0
 , nograph
-, mode_compute = 1
+, mode_compute = 5
 , posterior_sampling_method = 'slice'
 , posterior_sampler_options = ('rotated',1
 %                              ,'mode_files'
diff --git a/tests/estimation/method_of_moments/CET/cet_tarb.mod b/tests/estimation/method_of_moments/CET/cet_tarb.mod
index c9d5a03561..856c7e7f73 100644
--- a/tests/estimation/method_of_moments/CET/cet_tarb.mod
+++ b/tests/estimation/method_of_moments/CET/cet_tarb.mod
@@ -156,14 +156,14 @@ method_of_moments(mom_method = irf_matching
 
 
 method_of_moments(mom_method = irf_matching
-, additional_optimizer_steps = [1]
+, additional_optimizer_steps = [4]
 , cova_compute=1
 , dirname=cet_tarb_results
 , irf_matching_file = cet_irf_matching_file
 , mh_conf_sig = 0.90
 , mh_replic=0
 %, mode_check
-, mode_compute = 4
+, mode_compute = 5
 , mode_file = 'cet_tarb_results/method_of_moments/cet_tarb_mh_mode'
 , plot_priors = 0
 , nograph
-- 
GitLab