Learn R Programming

VIM (version 7.3.0)

extract_model_info: 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")

Value

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

Arguments

model

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

method

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