context("SplineWithSimultaneousConfIntervals")
data("phone", package = "flipExampleData")
test_that("SplineWithSimultaneousConfIntervals",
{
expect_error(SplineWithSimultaneousConfIntervals(rpois(100, 5), rnorm(100),
type = "Linear"), NA)
expect_error(SplineWithSimultaneousConfIntervals(phone$q4, phone$q24c.wdm,
type = "Binary Logit"), NA)
expect_error(SplineWithSimultaneousConfIntervals(phone$q1, phone$q24c.wdh,
type = "Binary Logit"), "cannot be dichotimized")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.