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