stratiflevels: Accessor function for stratification levels

stratiflevelsR 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)

csoneson/iCOBRA documentation built on Nov. 5, 2024, 7:20 p.m.