Description Usage Arguments Value Note See Also Examples
Given paired ROC curves it can be helpful to look at them in isolation as well.
This functions allows the extraction of one of the paired ROC
curves as a fbroc.roc
object without recalculating the ROC curve.
1 | extract.roc(x, index)
|
x |
Object of class |
index |
A number specifying which of the two ROC curves should be returned. Needs to be 1 or 2. |
An object of class fbroc.roc
containing all data about the requested ROC curve
Due to the way the predictions are reordered internally, using use.cache to save the bootstrap
results for paired ROC curves and then extracting one of the two curves will not yield the same
values as when the ROC curve is bootstrapped as a single curve using fbroc.roc
.
1 2 3 4 5 6 7 8 | data(roc.examples)
example <- boot.paired.roc(roc.examples$Cont.Pred, roc.examples$Cont.Pred.Outlier,
roc.examples$True.Class, n.boot = 100)
roc1 <- extract.roc(example, 1)
roc1.equivalent <- boot.roc(roc.examples$Cont.Pred, roc.examples$True.Class,
n.boot = 100)
print(identical(roc1, roc1.equivalent)) # roc1 and roc1.equivalent will be the same
# This does not hold when use.cache = TRUE. See the note above.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.