droplevels.mic_validation | R Documentation |
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.
## S3 method for class 'mic_validation'
droplevels(x, safe = TRUE, ...)
x |
mic_validation object |
safe |
ensure that essential agreement is not changed after dropping levels |
... |
additional arguments |
mic_validation object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.