stratiflevels {iCOBRA} | R Documentation

## Accessor function for stratification levels

### Description

Accessor function to extract the stratification levels that are represented in a `COBRAPerformance` or `COBRAPlot` object.

### Usage

    stratiflevels(x, ...)

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

### Arguments

`x` | A `COBRAPerformance` or `COBRAPlot` object
`...` | Additional arguments

### Value

A character vector of all stratification levels represented in the object

### Author(s)

Charlotte Soneson

### Examples

    data(cobradata_example)
    cobraperf <- calculate_performance(cobradata_example,
                                       binary_truth = "status",
                                       aspects = "fdrtpr", splv = "expr_cat",
                                       maxsplit = 4)
    stratiflevels(cobraperf)

[Package iCOBRA version 1.14.0 Index]