Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Dec 22, 2023
1 parent 9c8cc5c commit 7023e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_slopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_statsmodels_ols.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 7023e16

Please sign in to comment.