binarySuperLearner: Function to generate imputations using SuperLearner for data...

View source: R/binary_SuperLearner_regression.R

binarySuperLearnerR 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 length(y). A TRUE value indicates locations in y for which imputations are created.

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.


abshev/superMICE documentation built on May 10, 2022, 11:27 a.m.