mda objects are created from the mda package, leveraged to carry out mixture discriminant analysis.

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

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

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

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.

Value

Axed mda object.

Examples

suppressWarnings(suppressMessages(library(mda))) fit <- mda(Species ~ ., data = iris) out <- butcher(fit, verbose = TRUE)
#> Memory released: '10,680 B'
#> Disabled: `print()`, `summary()`, `update()`
# Another mda object data(glass) wrapped_mda <- function() { some_junk_in_environment <- runif(1e6) fit <- mda(Type ~ ., data = glass) return(fit) } lobstr::obj_size(wrapped_mda())
#> 8,058,992 B
lobstr::obj_size(butcher(wrapped_mda()))
#> 29,600 B