Nothing
test_that("Zero first inputs returns correct values", {
# 1. Test dtweedie(0, ...)
expect_equal(
dtweedie(0, mu = 1, phi = 1, power = 1.5),
exp( -1^(2-1.5)/((1 * (2 - 1.5))))
)
expect_equal(
dtweedie(0, mu = 1, phi = 1, power = 3.5),
0
)
# 2. Test ptweedie(0, ...)
expect_equal(
ptweedie(0, mu = 1, phi = 1, power = 1.5),
exp( -1^(2-1.5)/((1 * (2 - 1.5))))
)
expect_equal(
ptweedie(0, mu = 1, phi = 1, power = 3.5),
0
)
})
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.