tests/testthat/test-beta-shape-floor.R

test_that("Beta bootstrap shapes use the compiled likelihood floor", {
  ordinary <- tls_beta_shape_parameters(c(0.2, 0.8), 10)
  expect_equal(ordinary$a, c(2, 8))
  expect_equal(ordinary$b, c(8, 2))

  extreme <- tls_beta_shape_parameters(0.3, 1e-12)
  expect_equal(extreme$a, 1e-8)
  expect_equal(extreme$b, 1e-8)
})

Try the freqTLS package in your browser

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

freqTLS documentation built on Dec. 4, 2026, 5:11 p.m.