stratiflevels: Accessor function for stratification levels

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
2
3
4
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

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

iCOBRA documentation built on April 17, 2021, 6:07 p.m.