tests/testthat/test-relR_power.R

test_that("Simple power works without overdispersion", {
  p <- relR_power(665, 1.5, 2, 0.5, 1000)
  expect_equal(round(p, 1), 0.8)
})

test_that("Simple power works with overdispersion", {
  p <- relR_power(983, 1.5, 2, 0.5, 1000, overdispersion = 350)
  expect_equal(round(p, 1), 0.8)
})

Try the phylosamp package in your browser

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

phylosamp documentation built on May 31, 2023, 5:23 p.m.