Learn R Programming

MIC (version 1.1.0)

droplevels.mic_validation: 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 mic_validation
droplevels(x, safe = TRUE, ...)

Value

mic_validation object

Arguments

x

mic_validation object

safe

ensure that essential agreement is not changed after dropping levels

...

additional arguments

Examples

Run this code
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)

Run the code above in your browser using DataLab