Function to generate imputations using SuperLearner for data with a continuous outcome
continuousSuperLearner(y, x, wy, SL.library, kernel, bw, bw.update, ...)Vector of observed and missing/imputed values of the variable to be imputed.
Numeric matrix of variables to be used as predictors in SuperLearner models with rows corresponding to observed values of the variable to be imputed and columns corresponding to individual predictor variables.
Logical vector. A TRUE value indicates locations in y that are
missing or imputed.
Either a character vector of prediction algorithms or a
list containing character vectors. A list of functions included in the
SuperLearner package can be found with SuperLearner::listWrappers().
one of gaussian, uniform, or triangular.
Specifies the kernel to be used in estimating the distribution around a missing value.
NULL or numeric value for bandwidth of kernel function (as standard deviations of the kernel).
logical indicating whether bandwidths should be computed
every iteration or only on the first iteration. Default is TRUE,
but FALSE may speed up the run time at the cost of accuracy.
further arguments passed to SuperLearner().
numeric vector of randomly drawn imputed values.