tests/testthat/test-size.R

test_that("size is correct", {
  expect_equal(sizeWO(WO = 1.23, power = 0.9)$SampleSize, 1318)
})
test_that("size is correct, k = 1/3", {
  expect_equal(sizeWO(WO = 1.5, power = 0.9, k = 1/3)$SampleSize, 395)
})

Try the hce package in your browser

Any scripts or data that you put into this service are public.

hce documentation built on Oct. 16, 2024, 9:06 a.m.