Rates {fake} | R Documentation |
Computes the True and False Positive Rates by comparing the true (observed) and predicted status. The predicted status is obtained by applying a threshold on the predicted scores.
Rates(observed, predicted, thr)
observed |
vector of binary outcomes. |
predicted |
vector of predicted scores. |
thr |
threshold for predicted scores. |
True and False Positive Rates (TPR and FPR, respectively).