tpr: Accessor and replacement functions for 'tpr' slot

tprR Documentation

Accessor and replacement functions for tpr slot

Description

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

Usage

tpr(x, ...)

tpr(x, ...) <- value

## S4 method for signature 'COBRAPerformance'
tpr(x)

## S4 replacement method for signature 'COBRAPerformance,data.frame'
tpr(x) <- value

## S4 replacement method for signature 'COBRAPlot,data.frame'
tpr(x) <- value

Arguments

x

A 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.

Author(s)

Charlotte Soneson

Examples

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

markrobinsonuzh/iCOBRA documentation built on Nov. 7, 2024, 7:11 a.m.