Learn R Programming

butcher (version 0.3.5)

axe-glm: Axing a glm.

Description

glm objects are created from the base stats package.

Usage

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

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

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

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

Value

Axed glm 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_glm <- glm(mpg ~ ., data = mtcars)
cleaned_glm <- butcher(cars_glm, verbose = TRUE)

Run the code above in your browser using DataLab