Description
Tidy Prediction and Plotting of Generalised Additive Models.
Description
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().
README.md
tidygam: Tidy Prediction and Plotting of Generalised Additive Models
With tidygam, users can more easily obtain predictions from Generalised Additive Models (GAMs) and plot them, using tidyverse tools.
Installation
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")
Examples
For examples, see the Get started
vignette and the documentation of predict_gam()
and plot.tidygam()
.