Skip to contents

Determine Weights Appropriately for Super Learner given Binary Outcomes

Usage

determine_weights_for_binary_outcomes(data, y_variable)

Arguments

data

A data.frame with columns corresponding to predicted probabilities of 1 from each learner and the true y_variable from held-out data

y_variable

A character indicating the outcome variable in the data.frame.

Value

A vector of weights to be used for each of the learners.