Impute missing values based on a regression / classification model.
regressionImp(
formula,
data,
family = "AUTO",
robust = FALSE,
imp_var = TRUE,
imp_suffix = "imp",
mod_cat = FALSE,
edit_rules = NULL,
edit_control = NULL
)model formula to impute one variable
A data.frame containing the data
ignored in this wrapper version (only "AUTO"-like behaviour via vimpute)
logical; if TRUE use method = "robust", otherwise "regularized"
logical; if TRUE create TRUE/FALSE variables indicating imputation status
suffix used for TF imputation variables
ignored in this wrapper version (classification handled by vimpute)
Optional model-agnostic validator, applied jointly to the
assembled imputed LHS columns after all target fits; see vimpute().
Control object or named list; see vimpute_edit_control().
the imputed data set (same class as data)
By default (lm() for numeric responses and glm() for binary responses,
with any number of predictors) the imputation is deterministic and matches a
plain regression fit. When the design is rank-deficient (collinear predictors
or \(p \ge n\)) or the response is a multi-level factor, it falls back to
the regularized (glmnet) path via vimpute() with method = "regularized".
If robust = TRUE, vimpute() with method = "robust"
(lmrob() / glmrob()) is used.
Other imputation methods:
hotdeck(),
impPCA(),
imputeCellEM(),
imputeCellIRMI(),
imputeCellM(),
imputeCellMCD(),
imputeCellwise(),
imputeRobust(),
imputeRobustChain(),
irmi(),
kNN(),
matchImpute(),
medianSamp(),
rangerImpute(),
sampleCat(),
vimmi,
vimpute(),
xgboostImpute()