Type: | Package |
Title: | The Matthews Correlation Coefficient |
Version: | 0.4.4 |
Author: | Hitoshi Iuchi |
Maintainer: | Hitoshi Iuchi <hiuchi@sfc.keio.ac.jp> |
Description: | The Matthews correlation coefficient (MCC) score is calculated (Matthews BW (1975) <doi:10.1016/0005-2795(75)90109-9>). |
License: | MIT + file LICENSE |
Suggests: | testthat |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 6.0.1 |
NeedsCompilation: | no |
Packaged: | 2017-06-15 05:04:45 UTC; hiuchi |
Repository: | CRAN |
Date/Publication: | 2017-06-15 15:14:22 UTC |
Calculate the Matthews correlation coefficient (MCC) score
Description
Calculate the Matthews correlation coefficient (MCC) score
Usage
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
set.seed(18)
act <- abs(round(rnorm(100))) %% 2
pred <- abs(round(rnorm(100))) %% 2
mccr(act, pred)