roc2 | R Documentation |
This function calculates ROC statistics, including True Positive Rate (TPR), False Positive Rate (FPR), True Positives (TP), True Negatives (TN), False Positives (FP), False Negatives (FN), and True Skill Score (TSS) for two numeric vectors.
roc2(state, indicator, ...)
state |
A numeric vector representing the state values. |
indicator |
A numeric vector representing the indicator values. |
A data frame containing the following columns:
The state values.
A logical vector indicating whether each state is greater than 1 (TRUE) or not (FALSE).
The indicator values.
The True Positive Rate (TPR) calculated as TP / (TP + FN).
The False Positive Rate (FPR) calculated as FP / (FP + TN).
The True Positives (TP).
The True Negatives (TN).
The False Positives (FP).
The False Negatives (FN).
The True Skill Score (TSS) calculated as (TP / (TP + FN)) - (FP / (FP + TN)).
The order of the indicator values after sorting in descending order.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.