Learn R Programming

iCOBRA (version 1.0.2)

fdrtpr: Accessor and replacement functions for fdrtpr slot

Description

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

Usage

fdrtpr(x, ...)

fdrtpr(x, ...) <- value

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

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

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

Arguments

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

Run the code above in your browser using DataLab