Bindings for Additive TidyModels

Fit Generalized Additive Models (GAM) using 'mgcv' with 'parsnip'/'tidymodels' via 'additive' . 'tidymodels' is a collection of packages for machine learning; see Kuhn and Wickham (2020) < https://www.tidymodels.org>). The technical details of 'mgcv' are described in Wood (2017) .


Bindings for Additive TidyModels additive logo

Lifecycle:Stable Codecov TestCoverage Lastcommit Commits sincerelease R

CRANStatus CRANDownloads License:MIT DOI

additive supports Generalized Additive Models (GAM) using mgcv with parsnip/tidymodels.

Installation

The stable version of additive can be installed from CRAN using:

install.packages("additive")

The development version of additive can be installed from GitHub using:

install.packages("pak")
pak::pkg_install("hsbadr/additive")

Example

library(additive)

set.seed(2020)
dat <- gamSim(1, n = 400, dist = "normal", scale = 2)

additive_mod <-
  additive() |>
  set_engine("mgcv") |>
  fit(
    y ~ s(x0) + s(x1) + s(x2) + s(x3),
    data = dat
  )

summary(additive_mod$fit)

For more details, get started with additive.

Citation

To cite additive in publications, please use:

citation("additive")

Hamada S. Badr (2024): additive: Bindings for Additive TidyModels, Comprehensive R Archive Network (CRAN). URL: https://hsbadr.github.io/additive/.

Contributing

This project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

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("additive")

1.0.1 by Hamada S. Badr, 2 years ago


https://hsbadr.github.io/additive/, https://github.com/hsbadr/additive


Report a bug at https://github.com/hsbadr/additive/issues


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


Authors: Hamada S. Badr [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, purrr, rlang, stats, tibble, utils

Depends on mgcv, parsnip

Suggests covr, devtools, knitr, recipes, rmarkdown, roxygen2, spelling, testthat, workflows


See at CRAN