mROC | R Documentation |
Calculates mROC from the vector of predicted risks Takes in a vector of probabilities and returns mROC values (True positives, False Positives in an object of class mROC)
mROC(p, ordered = FALSE)
p |
A numeric vector of probabilities. |
ordered |
Optional, if the vector p is ordered from small to large (if not the function will do it; TRUE is to facilitate fast computations). |
This function returns an object of class mROC. It has three vectors: thresholds on predicted risks (which is the ordered vector of input probabilities), false positive rates (FPs), and true positive rates (TPs). You can directly call the plot function on this object to draw the mROC
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.