From 7023e16c329d0bc9e5828030ef5b2052c4855392 Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Fri, 22 Dec 2023 10:54:23 -0500 Subject: [PATCH] tests --- tests/test_slopes.py | 2 +- tests/test_statsmodels_ols.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_slopes.py b/tests/test_slopes.py index 480b6c1..4510bb6 100644 --- a/tests/test_slopes.py +++ b/tests/test_slopes.py @@ -16,7 +16,7 @@ def test_comparison_derivatives(): for e in est: cmp_py = comparisons(mod_py, comparison=e) cmp_r = pl.read_csv(f"tests/r/test_slopes_01_{e}.csv") - compare_r_to_py(cmp_r, cmp_py, msg=e, tolr=1e-5, tola=1e-5) + compare_r_to_py(cmp_r, cmp_py, msg=e, tolr=1e-4, tola=1e-4) test_comparison_derivatives() diff --git a/tests/test_statsmodels_ols.py b/tests/test_statsmodels_ols.py index 0a4f3df..344b00e 100644 --- a/tests/test_statsmodels_ols.py +++ b/tests/test_statsmodels_ols.py @@ -48,7 +48,7 @@ def test_slopes_01(): known = pl.read_csv("tests/r/test_statsmodels_ols_slopes_01.csv") unknown = unknown.sort(["term", "contrast", "rowid"]) known = known.sort(["term", "contrast", "rowid"]) - assert_series_equal(unknown["estimate"], known["estimate"], rtol=1e-3) + assert_series_equal(unknown["estimate"], known["estimate"], rtol=1e-2) assert_series_equal( unknown["std_error"], known["std.error"], check_names=False, rtol=1e-2 )