Calculate binary outcome deviance residuals using probability predictions

devianceResids(yhat, truth)

Arguments

yhat

A vector of predictions on the probability scale.

truth

A vector of true binary observations in the same order as yhat

Details

This function uses the predictions from a model applied to binary outcomes to calculate deviance residuals. Predictions must be on the probability scale.