fdrtprcurve {iCOBRA} | R Documentation

## Accessor and replacement functions for `fdrtprcurve` slot

### Description

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

### Usage

    fdrtprcurve(x, ...)

    fdrtprcurve(x, ...) <- value

    ## S4 method for signature 'COBRAPerformance'
    fdrtprcurve(x)

    ## S4 replacement method for signature 'COBRAPerformance,data.frame'
    fdrtprcurve(x) <- value

    ## S4 replacement method for signature 'COBRAPlot,data.frame'
    fdrtprcurve(x) <- value

### Arguments

`x` | A `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.

### Author(s)

Charlotte Soneson

### Examples

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

[Package iCOBRA version 1.22.2 Index]