Learn R Programming

iCOBRA (version 1.0.2)

stratiflevels: Accessor function for stratification levels

Description

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

Usage

stratiflevels(x, ...)

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

Arguments

x
An COBRAPerformance or COBRAPlot object
...
Additional arguments

Value

  • A character vector of all stratification levels represented in the object

Examples

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

Run the code above in your browser using DataLab