Nothing
context("moment functions")
test_that(
"Check that moment functions are correct and work", {
probs <- c(rep(0.01, 14))
expect_equal(
round(tvgeom_mean(probs), digits = 0),
round(mean(rtvgeom(n = 1e8, prob = probs)), digits = 0)
)
expect_equal(
round(tvgeom_var(probs), digits = 0),
round(var(rtvgeom(n = 1e8, prob = probs)), digits = 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.