confusion_matrix | R Documentation |
Get confusion matrix
confusion_matrix(groups, risk.pro, cancer = "Cancer", best.cutoff = NA)
groups |
TRUE/FALSE label |
cancer |
Cancer Name |
best.cutoff |
If not set, use youden index instead |
rs |
Predicted score |
A data.frame object
label = c(1,1,1,1,1,2,2,2,2,2) == 1
risk.probability = runif(10, min=0, max=100)
confusion_matrix(label, risk.probability, cancer = "ESCC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.