From 4fdb15b43751da47468706e03d953edbe0d55517 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 21 Jan 2022 14:50:44 +0100
Subject: [PATCH] Testsuite: fix test under Octave

Enforce the positivity of standard errors in the maximum likelihood
estimations. Otherwise some stderr are estimated negative, and the Bayesian
estimation fail because the initial value is out of the bounds of the prior
shape.
---
 tests/analytic_derivatives/fs2000_analytic_derivation.mod | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/analytic_derivatives/fs2000_analytic_derivation.mod b/tests/analytic_derivatives/fs2000_analytic_derivation.mod
index 7448b8540d..a5e6eeec1e 100644
--- a/tests/analytic_derivatives/fs2000_analytic_derivation.mod
+++ b/tests/analytic_derivatives/fs2000_analytic_derivation.mod
@@ -68,8 +68,8 @@ estimated_params;
 alp, 0.356;
 rho, 0.129;
 psi, 0.65;
-stderr e_a, 0.035449;
-stderr e_m, 0.008862;
+stderr e_a, 0.035449, 0, inf;
+stderr e_m, 0.008862, 0, inf;
 end;
 
 varobs gp_obs gy_obs;
-- 
GitLab