Provides functions that compute predictions from Generalised Additive Models (GAMs) fitted with 'mgcv' and return them as a tibble. These can be plotted with a generic plot()-method that uses 'ggplot2' or plotted as any other data frame. The main function is predict_gam().
With tidygam, users can more easily obtain predictions from Generalised Additive Models (GAMs) and plot them, using tidyverse tools.
You can install the latest release of tidygam from GitHub with:
# install.packages("remotes")
remotes::install_github("stefanocoretta/[email protected]")
Alternatively, you can install the development version:
# install.packages("remotes")
remotes::install_github("stefanocoretta/tidygam@devel")
For examples, see the Get started vignette and the documentation of
predict_gam() and plot.tidygam().