mccr: Calculate the Matthews correlation coefficient (MCC) score

Description Usage Arguments Value Examples

Description

Calculate the Matthews correlation coefficient (MCC) score

Usage

1
mccr(act, pred)

Arguments

act

actual values (vector), 1 (positive), or 0 (negative)

pred

predict values (vector), 1 (positive), or 0 (negative)

Value

MCC score

Examples

1
2
3
4
set.seed(18)
act <- abs(round(rnorm(100))) %% 2
pred <- abs(round(rnorm(100))) %% 2
mccr(act, pred)

Example output

[1] 0.1402527

mccr documentation built on May 2, 2019, 5:07 a.m.