Learn R Programming

iCOBRA (version 1.0.2)

fdrnbr: Accessor and replacement functions for fdrnbr slot

Description

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

Usage

fdrnbr(x, ...)

fdrnbr(x, ...) <- value

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

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

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

Arguments

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

Run the code above in your browser using DataLab