Learn R Programming

iCOBRA (version 1.0.2)

fpc: Accessor and replacement functions for fpc slot

Description

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

Usage

fpc(x, ...)

fpc(x, ...) <- value

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

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

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

Arguments

x
An COBRAPerformance or COBRAPlot object.
...
Additional arguments.
value
A data frame giving information necessary to generate false positive curves for each method and each stratification level.

Value

  • The accessor function returns a data frame giving information necessary to generate false positive curves for each method and each stratification level.

Examples

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

Run the code above in your browser using DataLab