Nothing
context ("Scenario of un wanted inputs")
test_that("NA values are avoided",{
expect_that(dMultiBin(NA,4,0.1,.3),
throws_error("NA or Infinite or NAN values in the Input"))
})
test_that("Infinite values are avoided",{
expect_that(dMultiBin(Inf,4,0.1,.3),
throws_error("NA or Infinite or NAN values in the Input"))
})
test_that("NAN values are avoided",{
expect_that(dMultiBin(NaN,4,0.1,.3),
throws_error("NA or Infinite or NAN values in the Input"))
})
context("Binomial random variable or trial value issues")
test_that("Random variable higher than Trial value",{
expect_that(dMultiBin(5,4,0.2,0.4),
throws_error("Binomial random variable cannot be greater than binomial trial value"))
})
test_that("Negativity",{
expect_that(dMultiBin(-3,4,0.2,0.4),
throws_error("Binomial random variable or binomial trial value cannot be negative"))
})
test_that("Random variable higher than Trial value",{
expect_that(dMultiBin(-8,-4,0.2,0.4),
throws_error("Binomial random variable or binomial trial value cannot be negative"))
})
context("Probability value issues")
test_that("Probability issues",{
expect_that(dMultiBin(3,5,3,0.4),
throws_error("Probability value doesnot satisfy conditions"))
})
test_that("Probability issues",{
expect_that(dMultiBin(3,5,-3,0.4),
throws_error("Probability value doesnot satisfy conditions"))
})
context("Theta value issues")
test_that("Theta issues",{
expect_that(dMultiBin(3,5,0.1,-3),
throws_error("Theta parameter value cannot be zero or less than zero"))
})
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.