library(insurancerating)
context("fitgam")
test_that("check if object is of fitgam class", {
x <- fit_gam(MTPL, nclaims = nclaims, x = age_policyholder,
exposure = exposure)
expect_is(x, "fitgam")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.