Tidy Prediction and Plotting of Generalised Additive Models

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().


tidygam: Tidy Prediction and Plotting of Generalised Additive Models

CRANchecks

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().

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tidygam")

1.0.0 by Stefano Coretta, 2 years ago


https://github.com/stefanocoretta/tidygam, https://stefanocoretta.github.io/tidygam/


Report a bug at https://github.com/stefanocoretta/tidygam/issues


Browse source code at https://github.com/cran/tidygam


Authors: Stefano Coretta [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, dplyr, ggplot2, glue, insight, magrittr, mgcv, rlang, stringr, tibble, tidyr, tidyselect

Suggests knitr, rmarkdown


See at CRAN