Skip to content

Commit

Permalink
increase tolerance for combining independent p-values because the tes…
Browse files Browse the repository at this point in the history
…t often fails due to chance
  • Loading branch information
svteichman committed Nov 18, 2024
1 parent 0a812f8 commit d92d44e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-combine_independent_p_values.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ test_that("uniform p-values under H0", {
{
combine_independent_p_values(runif(3))
})
expect_equal(mean(xx < 0.1), 0.1, tolerance=0.02)
expect_equal(mean(xx < 0.5), 0.5, tolerance=0.02)
expect_equal(mean(xx < 0.9), 0.9, tolerance=0.02)
expect_equal(mean(xx < 0.1), 0.1, tolerance=0.05)
expect_equal(mean(xx < 0.5), 0.5, tolerance=0.05)
expect_equal(mean(xx < 0.9), 0.9, tolerance=0.05)
# hist(xx)
})

Expand Down

0 comments on commit d92d44e

Please sign in to comment.