Nothing
context("Utilities")
test_that("Conf 2 prob", {
expect_true(length(conf_to_probs(0.90)) == 2)
expect_equal(conf_to_probs(0.9), c(0.05, 0.95))
})
test_that("Interval funs", {
expect_true(excludes_zero(c(0.5, 1)))
expect_true(!excludes_zero(c(-0.5, 1)))
expect_true(all(excludes_zero(data.frame(c(0.5, 1), c(0.85, 1.5)))))
expect_true(within_accuracy(c(0.9, 1.1), 1))
expect_true(!within_accuracy(c(0.5, 1.5), 1))
expect_true(in_interval(c(0.5, 1.5), 1))
expect_true(!in_interval(c(0.5, 1.5), 1.75))
})
test_that("Convenience conversion funs", {
expect_true(lnconc_to_cq(-10, 21, -1.5) == 36)
expect_true(cq_to_lnconc(36, 21, -1.5) == -10)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.