Learn R Programming

logicDT (version 1.0.5)

calcMis: Calculate the misclassification rate

Description

Computation of the misclassification rate for risk estimates in a binary classification problem.

Usage

calcMis(preds, y, cutoff = 0.5)

Value

The misclassification rate

Arguments

preds

Numeric vector of predictions

y

True outcomes

cutoff

Classification cutoff. By default, scores above 50 otherwise.