View source: R/goodness_of_fit.R
Rates | 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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.