Skip to contents

Computes the Matthews Correlation Coefficient (MCC) of the predictions.

Usage

MCCmetric(auxData, predicted)

Arguments

auxData

The true labels.

predicted

The predicted labels.

Value

The MCC.

Examples

auxData <- factor(c("A", "B", "A", "B"))
predicted <- factor(c("A", "A", "A", "B"))
MCCmetric(auxData, predicted)
#>         B 
#> 0.5773503