Skip to content

Commit

Permalink
Update test-convert_statistic.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mattansb committed Feb 21, 2024
1 parent af6dfba commit dc30fbb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-convert_statistic.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,9 @@ test_that("eta2", {
expect_equal(resf[[1]]^2, res[[1]] / (1 - res[[1]]), ignore_attr = TRUE)
expect_equal(F_to_f(4, 3, 123), F_to_f2(4, 3, 123, squared = FALSE))
expect_equal(F_to_f2(4, 3, 123), F_to_f(4, 3, 123, squared = TRUE))

res <- F_to_eta2(3.23, 1, 137)
expect_equal(res[[1]], 3.23 / (3.23 + 137))
expect_equal(res$CI_low, 0)
expect_equal(res$CI_high, 1)
})

0 comments on commit dc30fbb

Please sign in to comment.