binarySuperLearner {superMICE} | R Documentation |
Function to generate imputations using SuperLearner for data with a binary outcome.
Description
Function to generate imputations using SuperLearner for data with a binary outcome.
Usage
binarySuperLearner(y, x, wy, SL.library, ...)
Arguments
y |
Vector of observed values of the variable to be imputed. |
x |
Numeric matrix of variables to be used as predictors in SuperLearner methods with rows corresponding to values in Y. |
wy |
Logical vector of length |
SL.library |
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. |
Value
Binary Vector of randomly drawn imputed values.
[Package superMICE version 1.1.1 Index]