droplevels.mic_validation: Droplevels for MIC validation object

View source: R/meta_data.R

droplevels.mic_validationR Documentation

Droplevels for MIC validation object

Description

Quite often, MIC values are being compared across methods with different levels of granularity. For example, the true MIC may be measured across a higher range of values than the test method. This means that there may be MIC levels that don't provide much additional information (since they are only present in one of the methods). This function removes these unnecessary levels at both ranges of the MIC values.

This function ensure that the changes do not "change" the essential agreement interpretation. This can be suppressed using safe = FALSE, however this is probably not desired behaviour.

Usage

## S3 method for class 'mic_validation'
droplevels(x, safe = TRUE, ...)

Arguments

x

mic_validation object

safe

ensure that essential agreement is not changed after dropping levels

...

additional arguments

Value

mic_validation object

Examples

gold_standard <- c("<0.25", "0.25", "0.5", "1", "2", "1", "0.5")
test <- c("0.004", "0.08", "<0.25", "0.5", "1", "0.5", "0.5")
val <- compare_mic(gold_standard, test)
droplevels(val)

MIC documentation built on June 10, 2025, 9:14 a.m.