trim_glm: Remove excess parts of a GLM

Description Usage Arguments Value Examples

View source: R/Trimming.R

Description

Remove parts of a GLM not needed for prediction to trim down size.

Usage

1
trim_glm(model)

Arguments

model

A GLM object.

Value

A trimmed-down GLM, with only the parts needed for predicton.

Examples

1
2
3
mtcarsGLM <- glm(mpg ~ ., data = mtcars)
object.size(mtcarsGLM)
object.size(trim_glm(mtcarsGLM))

KO112/KO documentation built on Oct. 2, 2020, 9:21 a.m.