Learn R Programming

iCOBRA (version 1.0.2)

maxsplit: Accessor and replacement functions for maxsplit slot

Description

Accessor and replacement functions for the maxsplit slot in an COBRAPerformance or COBRAPlot object.

Usage

maxsplit(x, ...)

maxsplit(x, ...) <- value

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

## S3 method for class 'COBRAPerformance,numeric': maxsplit(x) <- value

## S3 method for class 'COBRAPlot,numeric': maxsplit(x) <- value

Arguments

x
An COBRAPerformance or COBRAPlot object.
...
Additional arguments.
value
A numeric value giving the maximal number of strata to retain.

Value

  • The accessor function returns a numeric value giving the maximal number of strata to retain.

Examples

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

Run the code above in your browser using DataLab