if (FALSE) {
library(ggplot2)
library(dplyr)
fit_gam(MTPL, nclaims = nclaims, x = age_policyholder, exposure = exposure) %>%
construct_tariff_classes(.) %>%
autoplot(., show_observations = TRUE)
}
if (FALSE) {
library(ggplot2)
library(dplyr)
fit_gam(MTPL, nclaims = nclaims, x = age_policyholder,
exposure = exposure) %>%
construct_tariff_classes(.) %>%
autoplot(., show_observations = TRUE)
}
Run the code above in your browser using DataLab