Function to generate imputations using SuperLearner for data with a binary outcome.
binarySuperLearner(y, x, wy, SL.library, ...)Vector of observed values of the variable to be imputed.
Numeric matrix of variables to be used as predictors in SuperLearner methods with rows corresponding to values in Y.
Logical vector of length length(y). A TRUE value indicates
locations in y for which imputations are created.
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().
Further arguments passed to SuperLearner.
Binary Vector of randomly drawn imputed values.