Learn R Programming

iCOBRA (version 1.0.2)

tpr: Accessor and replacement functions for tpr slot

Description

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

Usage

tpr(x, ...)

tpr(x, ...) <- value

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

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

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

Arguments

x
An COBRAPerformance or COBRAPlot object.
...
Additional arguments.
value
A data frame giving information about the observed TPR for each method and each stratification level, at various adjusted p-value thresholds.

Value

  • The accessor function returns a data frame giving information about the observed TPR for each method and each stratification level, at various adjusted p-value thresholds.

Examples

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

Run the code above in your browser using DataLab