Impute missing values based on a regression / classification model. Internally delegates to vimpute() with method = "regularized" (glmnet) or "robust" (lmrob/glmrob).

regressionImp(
  formula,
  data,
  family = "AUTO",
  robust = FALSE,
  imp_var = TRUE,
  imp_suffix = "imp",
  mod_cat = FALSE
)

Arguments

formula

model formula to impute one variable

data

A data.frame containing the data

family

ignored in this wrapper version (only "AUTO"-like behaviour via vimpute)

robust

logical; if TRUE use method = "robust", otherwise "regularized"

imp_var

logical; if TRUE create TRUE/FALSE variables indicating imputation status

imp_suffix

suffix used for TF imputation variables

mod_cat

ignored in this wrapper version (classification handled by vimpute)

Value

the imputed data set (same class as data)