tests/testthat/test-ci.R

test_that("limits works", {
  expect_equal(limits("greater", 0.9), c(0.1, 1.0))
  expect_equal(limits("less", 0.9), c(0, 0.9))
  expect_equal(limits("two.sided", 0.9), c(0.05, 0.95))
})

Try the alphaci package in your browser

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

alphaci documentation built on May 29, 2024, 8:55 a.m.