tests/testthat/test-other-dtweedie.R

test_that("No common errors", {
  # These are situations that had caused errors in the past that 
  # I have (hopefully) now fixed
  expect_no_error(
    dtweedie_inversion(power=1.5, mu=1, phi=0.5513086, y=0.5557088)
  )
  expect_no_error(
    dtweedie(power=1.5, mu=1, phi=0.5513086, y=c(0, 1, 2) )
  )
})

Try the tweedie package in your browser

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

tweedie documentation built on Feb. 7, 2026, 5:07 p.m.