Learn R Programming

iCOBRA (version 1.0.2)

fdrtprcurve: Accessor and replacement functions for fdrtprcurve slot

Description

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

Usage

fdrtprcurve(x, ...)

fdrtprcurve(x, ...) <- value

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

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

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

Arguments

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

Value

  • The accessor function returns a data frame giving information necessary to generate curves of observed FDR vs TPR for each method and each stratification level.

Examples

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

Run the code above in your browser using DataLab