extract_model_info: Extract model diagnostics for bootstrap strategies

View source: R/helper_vimpute.R

extract_model_infoR Documentation

Extract model diagnostics for bootstrap strategies

Description

Drills into an mlr3 learner or raw model to retrieve residuals, scale estimate, and robustness weights needed for bootstrap resampling.

Usage

extract_model_info(model, method = "robust")

Arguments

model

A fitted model object (lm, lmrob, gam, ranger, or mlr3 GraphLearner)

method

The vimpute method string: "robust", "ranger", "xgboost", "regularized"

Value

List with components: residuals (numeric vector or NULL), scale (numeric scalar or NULL), weights (numeric vector or NULL)


VIM documentation built on Sept. 2, 2026, 5:07 p.m.