Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 17, 2024
1 parent 983a719 commit e171da2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions tests/testthat/_snaps/equivalence_test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# equivalence test

Code
print(out)
Output
# Test for Practical Equivalence
ROPE: [-0.18 0.18]
Parameter | H0 | inside ROPE | 95% HDI
-----------------------------------------------------
(Intercept) | Rejected | 0.00 % | [-2.68, -0.50]
size | Accepted | 100.00 % | [-0.04, 0.07]
period2 | Rejected | 0.00 % | [-1.61, -0.36]
period3 | Rejected | 0.00 % | [-1.77, -0.40]
period4 | Rejected | 0.00 % | [-2.52, -0.76]

---

Code
print(out)
Output
# Test for Practical Equivalence
Parameter | H0 | inside ROPE | 95% HDI | ROPE
----------------------------------------------------------------------
(Intercept) | Undecided | 15.82 % | [-2.68, -0.50] | [-1.00, 1.00]
size | Accepted | 100.00 % | [-0.04, 0.07] | [-0.10, 0.10]
period2 | Rejected | 0.00 % | [-1.61, -0.36] | [0.00, 2.00]
period3 | Accepted | 100.00 % | [-1.77, -0.40] | [-2.00, 0.00]
period4 | Rejected | 0.00 % | [-2.52, -0.76] | [-0.10, 0.10]

2 changes: 1 addition & 1 deletion tests/testthat/test-equivalence_test.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_that("equivalence test", {
skip_if_offline()
skip_if_not_or_load_if_installed("rstanarm")
# skip_if_not_or_load_if_installed("rstanarm")
m <- insight::download_model("stanreg_merMod_5")

out <- equivalence_test(m, verbose = FALSE)
Expand Down

0 comments on commit e171da2

Please sign in to comment.