Learn R Programming

butcher (version 0.3.5)

axe-gam: Axing a gam.

Description

gam objects are created from the mgcv package.

Usage

# S3 method for gam
axe_call(x, verbose = FALSE, ...)

# S3 method for gam axe_ctrl(x, verbose = FALSE, ...)

# S3 method for gam axe_data(x, verbose = FALSE, ...)

# S3 method for gam axe_env(x, verbose = FALSE, ...)

# S3 method for gam axe_fitted(x, verbose = FALSE, ...)

Value

Axed gam object.

Arguments

x

A model object.

verbose

Print information each time an axe method is executed. Notes how much memory is released and what functions are disabled. Default is FALSE.

...

Any additional arguments related to axing.

Examples

Run this code

cars_gam <- mgcv::gam(mpg ~ s(disp, k = 3) + s(wt), data = mtcars)
cleaned_gam <- butcher(cars_gam, verbose = TRUE)

Run the code above in your browser using DataLab