tests/testthat/test_hP_distribution.R

test_that("hP density function", {
  expect_equal(dhP(3, 15, 2), 0.0017017682)
  expect_equal(dhP(rep(3, 2), 15, 2), rep(0.0017017682, 2))
})

Try the DGLMExtPois package in your browser

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

DGLMExtPois documentation built on Sept. 4, 2023, 5:06 p.m.