essential_agreement: Essential agreement for MIC validation

View source: R/meta_data.R

essential_agreementR Documentation

Essential agreement for MIC validation

Description

Essential agreement calculation for comparing two MIC vectors.

Usage

essential_agreement(x, y, coerce_mic = TRUE, mode = "categorical")

Arguments

x

AMR::mic or coercible

y

AMR::mic or coercible

coerce_mic

convert to AMR::mic

mode

Categorical or numeric

Details

Essential agreement is a central concept in the comparison of two sets of MIC values. It is most often used when validating a new method against a gold standard. This function reliably performs essential agreement in line with ISO 20776-2:2021. The function can be used in two modes: categorical and numeric. In categorical mode, the function will use traditional MIC concentrations to determine the MIC (therefore it will use force_mic() to convert both x and y to a clean MIC – see ?force_mic()). In numeric mode, the function will compare the ratio of the two MICs. In most cases, categorical mode provides more reliable results. Values within +/- 2 dilutions are considered to be in essential agreement.

Value

logical vector

References

International Organization for Standardization. ISO 20776-2:2021 Available from: https://www.iso.org/standard/79377.html

Examples

x <- AMR::as.mic(c("<0.25", "8", "64", ">64"))
y <- AMR::as.mic(c("<0.25", "2", "16", "64"))
essential_agreement(x, y)
# TRUE FALSE FALSE TRUE

MIC documentation built on April 12, 2025, 2:26 a.m.