compare_sir: Compare SIR results and generate categorical agreement
Description
Compare two AMR::sir vectors and generate a categorical agreement vector with
the following levels: M (major error), vM (very major error), m (minor error).
The error definitions are:
Major error (M): The test result is resistant (R) when the gold standard
is susceptible (S).
vM (very major error): The test result is susceptible (S) when the gold
standard is resistant (R).
Minor error (m): The test result is intermediate (I) when the gold standard
is susceptible (S) or resistant (R), or vice versa.
Usage
compare_sir(gold_standard, test)
Value
factor vector with the following levels: M, vM, m.