This R package lets you make estimates (with confidence intervals) using a generalized additive model (GAM) with penalized basis splines (P-splines). It was initiall developed for infectious disease outbreak research, but it applies to other domains as well.
This package can handle two types of estimates:
install.packages('pspline.inference')
library(pspline.inference)
See package documentation in R — ?pspline.inference
— for more information, as well as the package vignette — vignette('seasonal', package="pspline.inference")
.