uroc | R Documentation |
This function builds a UROC curve and returns a "uroc" object, a list of class "uroc".
uroc(response, predictor, approx = FALSE, split = 1)
response |
a numeric vector of real valued responses. |
predictor |
a numeric vector of the same length than |
approx |
Boolean. If TRUE approximates true roc curve with faster algorithm. |
split |
integer value with a default of |
The default option to compute uroc curve generates an approximation to the UROC curve by using linear interpolation of each ROC curve. For small datasets or binary response the exact uroc curve is computed. Setting option approx = TRUE
uses a faster approximation algorithm where computation time can be further reduced by setting the paramter split
which selects only a subset of ROC curves in the computation.
If object = TRUE
this function returns a list of class "uroc".
data(longley) response = longley$Employed predictor = longley$GNP uroc(response, predictor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.