skip_on_os(c("mac", "solaris"))
skip_if_not_installed("VGAM")
unloadNamespace("gam")
test_that("ggpredict", {
data("hunua", package = "VGAM")
m1 <- VGAM::vgam(agaaus ~ vitluc + VGAM::s(altitude, df = 2), VGAM::binomialff, data = hunua)
p <- ggpredict(m1, "vitluc")
expect_equal(p$predicted[1], 0.2491865, tolerance = 1e-3)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.