axe-gam | R Documentation |
gam objects are created from the mgcv package.
## S3 method for class 'gam'
axe_call(x, verbose = FALSE, ...)
## S3 method for class 'gam'
axe_ctrl(x, verbose = FALSE, ...)
## S3 method for class 'gam'
axe_data(x, verbose = FALSE, ...)
## S3 method for class 'gam'
axe_env(x, verbose = FALSE, ...)
## S3 method for class 'gam'
axe_fitted(x, verbose = FALSE, ...)
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 |
... |
Any additional arguments related to axing. |
Axed gam object.
cars_gam <- mgcv::gam(mpg ~ s(disp, k = 3) + s(wt), data = mtcars)
cleaned_gam <- butcher(cars_gam, verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.