iCOBRA (version 1.0.2)

roc: Accessor and replacement functions for roc slot

Description

Accessor and replacement functions for the roc slot in an COBRAPerformance or COBRAPlot object.

Usage

roc(x, ...)

roc(x, ...) <- value

## S3 method for class 'COBRAPerformance': roc(x)

## S3 method for class 'COBRAPerformance,data.frame': roc(x) <- value

## S3 method for class 'COBRAPlot,data.frame': roc(x) <- value

Arguments

x
An COBRAPerformance or COBRAPlot object.
...
Additional arguments.
value
A data frame giving information necessary to generate ROC curves for each method and each stratification level.

Value

  • The accessor function returns a data frame giving information necessary to generate ROC curves for each method and each stratification level.

Examples

Run this code
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
                                   binary_truth = "status", aspects = "roc")
head(roc(cobraperf))

Run the code above in your browser using DataLab