mcc | R Documentation |
Calculate Matthew's correlation coeffient (MCC). See https://en.wikipedia.org/wiki/Matthews_correlation_coefficient
mcc(t, scores, truth)
t |
the score threshold |
scores |
vector of scores for each measured item |
truth |
|
a vector listing the MCC value, the precision, and the recall
patientHasDisease <- sample(c(TRUE,FALSE),100,replace=TRUE)
patientDiganosticScore <- sapply(patientHasDisease,
function(d) if (d) rnorm(1,20,3) else rnorm(1,18,3)
)
mccval <- mcc(21,patientDiganosticScore,patientHasDisease)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.