Learn R Programming

iCOBRA (version 1.0.2)

fpr: Accessor and replacement functions for fpr slot

Description

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

Usage

fpr(x, ...)

fpr(x, ...) <- value

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

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

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

Arguments

x
An COBRAPerformance or COBRAPlot object.
...
Additional arguments.
value
A data frame giving information about the observed FPR 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 FPR 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 = "fpr")
head(fpr(cobraperf))

Run the code above in your browser using DataLab