mirror of
https://github.com/msberends/AMR.git
synced 2026-11-29 02:46:10 +01:00
Built site for AMR@3.0.1.9123: bf12e3a
This commit is contained in:
1 parent
c1a8cd4607
commit
b3ab31b1ec
92 files changed
+558
-357
No files matched your search
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -9,7 +9,7 @@ options(AMR_guideline = "CLSI")'><meta property="og:image" content="https://amr-
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ The AMR package is available in English, Arabic, Bengali, Chinese, Czech, Danish
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+28
-18
@@ -13,7 +13,7 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@@ -378,24 +378,34 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<h2 id="combination-therapy">Combination Therapy<a class="anchor" aria-label="anchor" href="#combination-therapy"></a></h2>
|
||||
|
||||
|
||||
<p>A combination of antimicrobials is considered as good as its most active antimicrobial: <code>"S"</code> is preferred over <code>"WT"</code>, and <code>"R"</code> over <code>"NWT"</code> and <code>"NS"</code>. The value <code>"NI"</code> (non-interpretable) is considered a missing result.</p>
|
||||
<p>A missing result can only be ignored if the result of the combination is susceptible regardless of the missing result, which depends on the <code>only_all_tested</code> argument and on the guideline: under EUCAST, the 'I' category is considered susceptible (<em>susceptible, increased exposure</em>), and under CLSI, it is not.</p>
|
||||
<p>This is an example for two antimicrobials, Drug A and Drug B (the order of the antimicrobials does not matter):</p>
|
||||
<p>Results are ordered from susceptible to resistant: S (and WT), SDD, I, R (and NWT, NS). With <code>method = "most_susceptible"</code> (in <code><a href="sir_combine.html">sir_combine()</a></code>), the most susceptible result of the antimicrobials is returned, and with <code>method = "most_resistant"</code>, the most resistant result. The value <code>"NI"</code> (non-interpretable) is considered a missing result.</p>
|
||||
<p>A missing result can only be ignored if it cannot change the conclusion: a susceptible result for <code>"most_susceptible"</code>, and a non-susceptible result for <code>"most_resistant"</code>. Under EUCAST, the 'I' category is considered susceptible (<em>susceptible, increased exposure</em>), and under CLSI, it is not. With <code>only_all_tested = TRUE</code>, any missing result leads to <code>NA</code>.</p>
|
||||
<p>This is an example for two antimicrobials, Drug A and Drug B, under EUCAST (the order of the antimicrobials does not matter):</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> Result of the combination</span>
|
||||
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a> <span class="sc">-----------------------------------------------------</span></span>
|
||||
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a> Drug A Drug B only_all_tested <span class="ot">=</span> <span class="cn">FALSE</span> only_all_tested <span class="ot">=</span> <span class="cn">TRUE</span></span>
|
||||
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a><span class="sc">--------</span> <span class="sc">--------</span> <span class="sc">----------------------------</span> <span class="sc">----------------------</span></span>
|
||||
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a> S S, I, R S S</span>
|
||||
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a> I I, R I I</span>
|
||||
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a> R R R R</span>
|
||||
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="fu">I</span> (EUCAST), <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> (CLSI) <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-11"><a href="#cb1-11" tabindex="-1"></a> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-12"><a href="#cb1-12" tabindex="-1"></a> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span></code></pre><p></p></div>
|
||||
<p>The <code><a href="count.html">count_*()</a></code> and <code><a href="proportion.html">proportion_*()</a></code> functions, such as <code><a href="proportion.html">susceptibility()</a></code> and <code><a href="proportion.html">resistance()</a></code>, apply exactly these rules when more than one variable is used: an isolate is considered tested if the result of the combination is not <code>NA</code>, and is then counted by the result of the combination. Consequently, <code><a href="count.html">count_susceptible()</a></code> <code>+</code> <code><a href="count.html">count_resistant()</a></code> <code>=</code> <code><a href="count.html">count_all()</a></code>, and <code><a href="proportion.html">susceptibility()</a></code> <code>+</code> <code><a href="proportion.html">resistance()</a></code> <code>= 1</code>, for both values of <code>only_all_tested</code>. The guideline is taken from their <code>guideline</code> argument if they have one, and otherwise from the <code>AMR_guideline</code> option.</p>
|
||||
<p>In <code>antibiogram()</code> and <code>wisca()</code>, the 'I' and 'SDD' categories are considered susceptible if <code>combine_SI = TRUE</code> (default), and the result of the combination is then reduced to S or R.</p>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> Result of method <span class="ot">=</span> Result of method <span class="ot">=</span></span>
|
||||
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a> <span class="st">"most_susceptible"</span> <span class="st">"most_resistant"</span></span>
|
||||
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a> <span class="sc">-----------------------</span> <span class="sc">-----------------------------</span></span>
|
||||
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a> only_all_tested <span class="ot">=</span> only_all_tested <span class="ot">=</span></span>
|
||||
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a> Drug A Drug B <span class="cn">FALSE</span> <span class="cn">TRUE</span> <span class="cn">FALSE</span> <span class="cn">TRUE</span></span>
|
||||
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a><span class="sc">--------</span> <span class="sc">--------</span> <span class="sc">---------</span> <span class="sc">---------</span> <span class="sc">-----------</span> <span class="sc">-------------</span></span>
|
||||
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a> S S S S S S</span>
|
||||
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a> S I S S I I</span>
|
||||
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a> S R S S R R</span>
|
||||
<span id="cb1-11"><a href="#cb1-11" tabindex="-1"></a> I R I I R R</span>
|
||||
<span id="cb1-12"><a href="#cb1-12" tabindex="-1"></a> R R R R R R</span>
|
||||
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-14"><a href="#cb1-14" tabindex="-1"></a> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-15"><a href="#cb1-15" tabindex="-1"></a> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-16"><a href="#cb1-16" tabindex="-1"></a> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-17"><a href="#cb1-17" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span></code></pre><p></p></div>
|
||||
<p>Under CLSI, the combination of I with a missing result is <code><NA></code> for <code>"most_susceptible"</code> and I for <code>"most_resistant"</code>.</p>
|
||||
<p>The <code><a href="count.html">count_*()</a></code> and <code><a href="proportion.html">proportion_*()</a></code> functions apply these rules when more than one variable is used. With <code>only_all_tested = FALSE</code> (default), the functions for susceptibility, such as <code><a href="proportion.html">susceptibility()</a></code> and <code><a href="count.html">count_susceptible()</a></code>, count an isolate as susceptible if any of the antimicrobials is susceptible (<code>"most_susceptible"</code>), and the functions for resistance, such as <code><a href="proportion.html">resistance()</a></code> and <code><a href="count.html">count_resistant()</a></code>, count an isolate as resistant if any of the antimicrobials is resistant (<code>"most_resistant"</code>). An isolate is considered tested if it has such a result, or if it was tested for all antimicrobials. Therefore, for combinations with <code>only_all_tested = FALSE</code>:</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a> <span class="fu">count_S</span>() <span class="sc">+</span> <span class="fu">count_I</span>() <span class="sc">+</span> <span class="fu">count_R</span>() <span class="sc">>=</span> <span class="fu">count_all</span>()</span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> <span class="fu">proportion_S</span>() <span class="sc">+</span> <span class="fu">proportion_I</span>() <span class="sc">+</span> <span class="fu">proportion_R</span>() <span class="sc">>=</span> <span class="dv">1</span></span></code></pre><p></p></div>
|
||||
<p>With <code>only_all_tested = TRUE</code>, all these functions count the result of the combination therapy (<code>"most_susceptible"</code>) of isolates tested for all antimicrobials, so that:</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a> <span class="fu">count_S</span>() <span class="sc">+</span> <span class="fu">count_I</span>() <span class="sc">+</span> <span class="fu">count_R</span>() <span class="ot">=</span> <span class="fu">count_all</span>()</span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> <span class="fu">proportion_S</span>() <span class="sc">+</span> <span class="fu">proportion_I</span>() <span class="sc">+</span> <span class="fu">proportion_R</span>() <span class="ot">=</span> <span class="dv">1</span></span></code></pre><p></p></div>
|
||||
<p>In <code>antibiogram()</code> and <code>wisca()</code>, the result of the combination therapy (<code>"most_susceptible"</code>) is used, the 'I' and 'SDD' categories are considered susceptible if <code>combine_SI = TRUE</code> (default), and the result is then reduced to S or R.</p>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
<h2 id="references">References<a class="anchor" aria-label="anchor" href="#references"></a></h2>
|
||||
|
||||
+57
-37
@@ -566,54 +566,74 @@ vignette](https://amr-for-r.org/articles/WISCA.html).
|
||||
|
||||
## Combination Therapy
|
||||
|
||||
A combination of antimicrobials is considered as good as its most active
|
||||
antimicrobial: `"S"` is preferred over `"WT"`, and `"R"` over `"NWT"`
|
||||
and `"NS"`. The value `"NI"` (non-interpretable) is considered a missing
|
||||
result.
|
||||
Results are ordered from susceptible to resistant: S (and WT), SDD, I, R
|
||||
(and NWT, NS). With `method = "most_susceptible"` (in
|
||||
[`sir_combine()`](https://amr-for-r.org/reference/sir_combine.md)), the
|
||||
most susceptible result of the antimicrobials is returned, and with
|
||||
`method = "most_resistant"`, the most resistant result. The value `"NI"`
|
||||
(non-interpretable) is considered a missing result.
|
||||
|
||||
A missing result can only be ignored if the result of the combination is
|
||||
susceptible regardless of the missing result, which depends on the
|
||||
`only_all_tested` argument and on the guideline: under EUCAST, the 'I'
|
||||
category is considered susceptible (*susceptible, increased exposure*),
|
||||
and under CLSI, it is not.
|
||||
A missing result can only be ignored if it cannot change the conclusion:
|
||||
a susceptible result for `"most_susceptible"`, and a non-susceptible
|
||||
result for `"most_resistant"`. Under EUCAST, the 'I' category is
|
||||
considered susceptible (*susceptible, increased exposure*), and under
|
||||
CLSI, it is not. With `only_all_tested = TRUE`, any missing result leads
|
||||
to `NA`.
|
||||
|
||||
This is an example for two antimicrobials, Drug A and Drug B (the order
|
||||
of the antimicrobials does not matter):
|
||||
This is an example for two antimicrobials, Drug A and Drug B, under
|
||||
EUCAST (the order of the antimicrobials does not matter):
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
Result of the combination
|
||||
-----------------------------------------------------
|
||||
Drug A Drug B only_all_tested = FALSE only_all_tested = TRUE
|
||||
-------- -------- ---------------------------- ----------------------
|
||||
S S, I, R S S
|
||||
I I, R I I
|
||||
R R R R
|
||||
S <NA> S <NA>
|
||||
I <NA> I (EUCAST), <NA> (CLSI) <NA>
|
||||
R <NA> <NA> <NA>
|
||||
<NA> <NA> <NA> <NA>
|
||||
Result of method = Result of method =
|
||||
"most_susceptible" "most_resistant"
|
||||
----------------------- -----------------------------
|
||||
only_all_tested = only_all_tested =
|
||||
Drug A Drug B FALSE TRUE FALSE TRUE
|
||||
-------- -------- --------- --------- ----------- -------------
|
||||
S S S S S S
|
||||
S I S S I I
|
||||
S R S S R R
|
||||
I R I I R R
|
||||
R R R R R R
|
||||
S <NA> S <NA> <NA> <NA>
|
||||
I <NA> I <NA> <NA> <NA>
|
||||
R <NA> <NA> <NA> R <NA>
|
||||
<NA> <NA> <NA> <NA> <NA> <NA>
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Under CLSI, the combination of I with a missing result is `<NA>` for
|
||||
`"most_susceptible"` and I for `"most_resistant"`.
|
||||
|
||||
The [`count_*()`](https://amr-for-r.org/reference/count.md) and
|
||||
[`proportion_*()`](https://amr-for-r.org/reference/proportion.md)
|
||||
functions, such as
|
||||
functions apply these rules when more than one variable is used. With
|
||||
`only_all_tested = FALSE` (default), the functions for susceptibility,
|
||||
such as
|
||||
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md) and
|
||||
[`resistance()`](https://amr-for-r.org/reference/proportion.md), apply
|
||||
exactly these rules when more than one variable is used: an isolate is
|
||||
considered tested if the result of the combination is not `NA`, and is
|
||||
then counted by the result of the combination. Consequently,
|
||||
[`count_susceptible()`](https://amr-for-r.org/reference/count.md) `+`
|
||||
[`count_resistant()`](https://amr-for-r.org/reference/count.md) `=`
|
||||
[`count_all()`](https://amr-for-r.org/reference/count.md), and
|
||||
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md) `+`
|
||||
[`resistance()`](https://amr-for-r.org/reference/proportion.md) `= 1`,
|
||||
for both values of `only_all_tested`. The guideline is taken from their
|
||||
`guideline` argument if they have one, and otherwise from the
|
||||
`AMR_guideline` option.
|
||||
[`count_susceptible()`](https://amr-for-r.org/reference/count.md), count
|
||||
an isolate as susceptible if any of the antimicrobials is susceptible
|
||||
(`"most_susceptible"`), and the functions for resistance, such as
|
||||
[`resistance()`](https://amr-for-r.org/reference/proportion.md) and
|
||||
[`count_resistant()`](https://amr-for-r.org/reference/count.md), count
|
||||
an isolate as resistant if any of the antimicrobials is resistant
|
||||
(`"most_resistant"`). An isolate is considered tested if it has such a
|
||||
result, or if it was tested for all antimicrobials. Therefore, for
|
||||
combinations with `only_all_tested = FALSE`:
|
||||
|
||||
In `antibiogram()` and `wisca()`, the 'I' and 'SDD' categories are
|
||||
count_S() + count_I() + count_R() >= count_all()
|
||||
proportion_S() + proportion_I() + proportion_R() >= 1
|
||||
|
||||
With `only_all_tested = TRUE`, all these functions count the result of
|
||||
the combination therapy (`"most_susceptible"`) of isolates tested for
|
||||
all antimicrobials, so that:
|
||||
|
||||
count_S() + count_I() + count_R() = count_all()
|
||||
proportion_S() + proportion_I() + proportion_R() = 1
|
||||
|
||||
In `antibiogram()` and `wisca()`, the result of the combination therapy
|
||||
(`"most_susceptible"`) is used, the 'I' and 'SDD' categories are
|
||||
considered susceptible if `combine_SI = TRUE` (default), and the result
|
||||
of the combination is then reduced to S or R.
|
||||
is then reduced to S or R.
|
||||
|
||||
## References
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ my_data_with_all_these_columns %&gt;%
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -9,7 +9,7 @@ The antibiotics data set has been renamed to antimicrobials. The old name will b
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -9,7 +9,7 @@ Breakpoints are currently implemented from EUCAST 2011-2026 and CLSI 2011-2026,
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@@ -463,10 +463,10 @@ Breakpoints are currently implemented from EUCAST 2011-2026 and CLSI 2011-2026,
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 4 × 18</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> datetime index method ab_given mo_given host_given input_given</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><dttm></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2026-10-12 <span style="color: #949494;">10:59:44</span> 1 MIC amoxicillin Escherich… human 8 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 2026-10-12 <span style="color: #949494;">10:59:44</span> 1 MIC cipro Escherich… human 0.256 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> 2026-10-12 <span style="color: #949494;">10:59:44</span> 1 DISK tobra Escherich… human 16 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> 2026-10-12 <span style="color: #949494;">10:59:45</span> 1 DISK genta Escherich… human 18 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2026-10-12 <span style="color: #949494;">19:43:51</span> 1 MIC amoxicillin Escherich… human 8 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 2026-10-12 <span style="color: #949494;">19:43:52</span> 1 MIC cipro Escherich… human 0.256 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> 2026-10-12 <span style="color: #949494;">19:43:52</span> 1 DISK tobra Escherich… human 16 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> 2026-10-12 <span style="color: #949494;">19:43:52</span> 1 DISK genta Escherich… human 18 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 11 more variables: ab <ab>, mo <mo>, host <chr>, input <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># outcome <sir>, notes <chr>, guideline <chr>, ref_table <chr>, uti <lgl>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># breakpoint_S_R <chr>, site <chr></span></span>
|
||||
|
||||
+4
-4
@@ -722,10 +722,10 @@ sir_interpretation_history()
|
||||
#> # A tibble: 4 × 18
|
||||
#> datetime index method ab_given mo_given host_given input_given
|
||||
#> <dttm> <int> <chr> <chr> <chr> <chr> <chr>
|
||||
#> 1 2026-10-12 10:59:44 1 MIC amoxicillin Escherich… human 8
|
||||
#> 2 2026-10-12 10:59:44 1 MIC cipro Escherich… human 0.256
|
||||
#> 3 2026-10-12 10:59:44 1 DISK tobra Escherich… human 16
|
||||
#> 4 2026-10-12 10:59:45 1 DISK genta Escherich… human 18
|
||||
#> 1 2026-10-12 19:43:51 1 MIC amoxicillin Escherich… human 8
|
||||
#> 2 2026-10-12 19:43:52 1 MIC cipro Escherich… human 0.256
|
||||
#> 3 2026-10-12 19:43:52 1 DISK tobra Escherich… human 16
|
||||
#> 4 2026-10-12 19:43:52 1 DISK genta Escherich… human 18
|
||||
#> # ℹ 11 more variables: ab <ab>, mo <mo>, host <chr>, input <chr>,
|
||||
#> # outcome <sir>, notes <chr>, guideline <chr>, ref_table <chr>, uti <lgl>,
|
||||
#> # breakpoint_S_R <chr>, site <chr>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -21,7 +21,7 @@ Use as.sir() to transform MICs or disks measurements to SIR values."><meta prope
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+29
-19
@@ -9,7 +9,7 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@@ -133,7 +133,7 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
|
||||
<div class="section level2">
|
||||
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
|
||||
<p>These functions are meant to count isolates. Use the <code><a href="proportion.html">resistance()</a></code>/<code><a href="proportion.html">susceptibility()</a></code> functions to calculate microbial resistance/susceptibility.</p>
|
||||
<p>The function <code>n_sir()</code> is an alias of <code>count_all()</code>. They can be used to count all available isolates, i.e. where the input antimicrobial has an available result (S, I or R), or for multiple antimicrobials, where the result of the combination is available (see <em>Combination Therapy</em> below). Their use is equal to <code>dplyr</code>'s <code><a href="https://dplyr.tidyverse.org/reference/n_distinct.html" class="external-link">n_distinct()</a></code>. Their function is equal to <code>count_susceptible(...) + count_resistant(...)</code>.</p>
|
||||
<p>The function <code>n_sir()</code> is an alias of <code>count_all()</code>. They can be used to count all available isolates, i.e. where the input antimicrobial has an available result (S, I or R). For multiple antimicrobials, these are isolates with a result for any of the antimicrobials, or with <code>only_all_tested = TRUE</code>, for all of the antimicrobials (see <em>Combination Therapy</em> below). Their use is equal to <code>dplyr</code>'s <code><a href="https://dplyr.tidyverse.org/reference/n_distinct.html" class="external-link">n_distinct()</a></code>. For one antimicrobial, their function is equal to <code>count_susceptible(...) + count_resistant(...)</code>.</p>
|
||||
<p>The function <code>count_df()</code> takes any variable from <code>data</code> that has an <code><a href="as.sir.html">sir</a></code> class (created with <code><a href="as.sir.html">as.sir()</a></code>) and counts the number of S's, I's and R's. It also supports grouped variables. The function <code><a href="proportion.html">sir_df()</a></code> works exactly like <code>count_df()</code>, but adds the percentage of S, I and R.</p>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
@@ -147,24 +147,34 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
|
||||
<h2 id="combination-therapy">Combination Therapy<a class="anchor" aria-label="anchor" href="#combination-therapy"></a></h2>
|
||||
|
||||
|
||||
<p>A combination of antimicrobials is considered as good as its most active antimicrobial: <code>"S"</code> is preferred over <code>"WT"</code>, and <code>"R"</code> over <code>"NWT"</code> and <code>"NS"</code>. The value <code>"NI"</code> (non-interpretable) is considered a missing result.</p>
|
||||
<p>A missing result can only be ignored if the result of the combination is susceptible regardless of the missing result, which depends on the <code>only_all_tested</code> argument and on the guideline: under EUCAST, the 'I' category is considered susceptible (<em>susceptible, increased exposure</em>), and under CLSI, it is not.</p>
|
||||
<p>This is an example for two antimicrobials, Drug A and Drug B (the order of the antimicrobials does not matter):</p>
|
||||
<p>Results are ordered from susceptible to resistant: S (and WT), SDD, I, R (and NWT, NS). With <code>method = "most_susceptible"</code> (in <code><a href="sir_combine.html">sir_combine()</a></code>), the most susceptible result of the antimicrobials is returned, and with <code>method = "most_resistant"</code>, the most resistant result. The value <code>"NI"</code> (non-interpretable) is considered a missing result.</p>
|
||||
<p>A missing result can only be ignored if it cannot change the conclusion: a susceptible result for <code>"most_susceptible"</code>, and a non-susceptible result for <code>"most_resistant"</code>. Under EUCAST, the 'I' category is considered susceptible (<em>susceptible, increased exposure</em>), and under CLSI, it is not. With <code>only_all_tested = TRUE</code>, any missing result leads to <code>NA</code>.</p>
|
||||
<p>This is an example for two antimicrobials, Drug A and Drug B, under EUCAST (the order of the antimicrobials does not matter):</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> Result of the combination</span>
|
||||
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a> <span class="sc">-----------------------------------------------------</span></span>
|
||||
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a> Drug A Drug B only_all_tested <span class="ot">=</span> <span class="cn">FALSE</span> only_all_tested <span class="ot">=</span> <span class="cn">TRUE</span></span>
|
||||
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a><span class="sc">--------</span> <span class="sc">--------</span> <span class="sc">----------------------------</span> <span class="sc">----------------------</span></span>
|
||||
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a> S S, I, R S S</span>
|
||||
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a> I I, R I I</span>
|
||||
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a> R R R R</span>
|
||||
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="fu">I</span> (EUCAST), <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> (CLSI) <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-11"><a href="#cb1-11" tabindex="-1"></a> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-12"><a href="#cb1-12" tabindex="-1"></a> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span></code></pre><p></p></div>
|
||||
<p>The <code>count_*()</code> and <code><a href="proportion.html">proportion_*()</a></code> functions, such as <code><a href="proportion.html">susceptibility()</a></code> and <code><a href="proportion.html">resistance()</a></code>, apply exactly these rules when more than one variable is used: an isolate is considered tested if the result of the combination is not <code>NA</code>, and is then counted by the result of the combination. Consequently, <code>count_susceptible()</code> <code>+</code> <code>count_resistant()</code> <code>=</code> <code>count_all()</code>, and <code><a href="proportion.html">susceptibility()</a></code> <code>+</code> <code><a href="proportion.html">resistance()</a></code> <code>= 1</code>, for both values of <code>only_all_tested</code>. The guideline is taken from their <code>guideline</code> argument if they have one, and otherwise from the <code>AMR_guideline</code> option.</p>
|
||||
<p>In <code><a href="antibiogram.html">antibiogram()</a></code> and <code><a href="antibiogram.html">wisca()</a></code>, the 'I' and 'SDD' categories are considered susceptible if <code>combine_SI = TRUE</code> (default), and the result of the combination is then reduced to S or R.</p>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> Result of method <span class="ot">=</span> Result of method <span class="ot">=</span></span>
|
||||
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a> <span class="st">"most_susceptible"</span> <span class="st">"most_resistant"</span></span>
|
||||
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a> <span class="sc">-----------------------</span> <span class="sc">-----------------------------</span></span>
|
||||
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a> only_all_tested <span class="ot">=</span> only_all_tested <span class="ot">=</span></span>
|
||||
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a> Drug A Drug B <span class="cn">FALSE</span> <span class="cn">TRUE</span> <span class="cn">FALSE</span> <span class="cn">TRUE</span></span>
|
||||
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a><span class="sc">--------</span> <span class="sc">--------</span> <span class="sc">---------</span> <span class="sc">---------</span> <span class="sc">-----------</span> <span class="sc">-------------</span></span>
|
||||
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a> S S S S S S</span>
|
||||
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a> S I S S I I</span>
|
||||
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a> S R S S R R</span>
|
||||
<span id="cb1-11"><a href="#cb1-11" tabindex="-1"></a> I R I I R R</span>
|
||||
<span id="cb1-12"><a href="#cb1-12" tabindex="-1"></a> R R R R R R</span>
|
||||
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-14"><a href="#cb1-14" tabindex="-1"></a> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-15"><a href="#cb1-15" tabindex="-1"></a> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-16"><a href="#cb1-16" tabindex="-1"></a> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-17"><a href="#cb1-17" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span></code></pre><p></p></div>
|
||||
<p>Under CLSI, the combination of I with a missing result is <code><NA></code> for <code>"most_susceptible"</code> and I for <code>"most_resistant"</code>.</p>
|
||||
<p>The <code>count_*()</code> and <code><a href="proportion.html">proportion_*()</a></code> functions apply these rules when more than one variable is used. With <code>only_all_tested = FALSE</code> (default), the functions for susceptibility, such as <code><a href="proportion.html">susceptibility()</a></code> and <code>count_susceptible()</code>, count an isolate as susceptible if any of the antimicrobials is susceptible (<code>"most_susceptible"</code>), and the functions for resistance, such as <code><a href="proportion.html">resistance()</a></code> and <code>count_resistant()</code>, count an isolate as resistant if any of the antimicrobials is resistant (<code>"most_resistant"</code>). An isolate is considered tested if it has such a result, or if it was tested for all antimicrobials. Therefore, for combinations with <code>only_all_tested = FALSE</code>:</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a> <span class="fu">count_S</span>() <span class="sc">+</span> <span class="fu">count_I</span>() <span class="sc">+</span> <span class="fu">count_R</span>() <span class="sc">>=</span> <span class="fu">count_all</span>()</span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> <span class="fu">proportion_S</span>() <span class="sc">+</span> <span class="fu">proportion_I</span>() <span class="sc">+</span> <span class="fu">proportion_R</span>() <span class="sc">>=</span> <span class="dv">1</span></span></code></pre><p></p></div>
|
||||
<p>With <code>only_all_tested = TRUE</code>, all these functions count the result of the combination therapy (<code>"most_susceptible"</code>) of isolates tested for all antimicrobials, so that:</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a> <span class="fu">count_S</span>() <span class="sc">+</span> <span class="fu">count_I</span>() <span class="sc">+</span> <span class="fu">count_R</span>() <span class="ot">=</span> <span class="fu">count_all</span>()</span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> <span class="fu">proportion_S</span>() <span class="sc">+</span> <span class="fu">proportion_I</span>() <span class="sc">+</span> <span class="fu">proportion_R</span>() <span class="ot">=</span> <span class="dv">1</span></span></code></pre><p></p></div>
|
||||
<p>In <code><a href="antibiogram.html">antibiogram()</a></code> and <code><a href="antibiogram.html">wisca()</a></code>, the result of the combination therapy (<code>"most_susceptible"</code>) is used, the 'I' and 'SDD' categories are considered susceptible if <code>combine_SI = TRUE</code> (default), and the result is then reduced to S or R.</p>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
<h2 id="see-also">See also<a class="anchor" aria-label="anchor" href="#see-also"></a></h2>
|
||||
|
||||
+62
-39
@@ -120,11 +120,12 @@ functions to calculate microbial resistance/susceptibility.
|
||||
|
||||
The function `n_sir()` is an alias of `count_all()`. They can be used to
|
||||
count all available isolates, i.e. where the input antimicrobial has an
|
||||
available result (S, I or R), or for multiple antimicrobials, where the
|
||||
result of the combination is available (see *Combination Therapy*
|
||||
below). Their use is equal to `dplyr`'s
|
||||
available result (S, I or R). For multiple antimicrobials, these are
|
||||
isolates with a result for any of the antimicrobials, or with
|
||||
`only_all_tested = TRUE`, for all of the antimicrobials (see
|
||||
*Combination Therapy* below). Their use is equal to `dplyr`'s
|
||||
[`n_distinct()`](https://dplyr.tidyverse.org/reference/n_distinct.html).
|
||||
Their function is equal to
|
||||
For one antimicrobial, their function is equal to
|
||||
`count_susceptible(...) + count_resistant(...)`.
|
||||
|
||||
The function `count_df()` takes any variable from `data` that has an
|
||||
@@ -150,53 +151,75 @@ to `count_SI()`) to count susceptible isolates.
|
||||
|
||||
## Combination Therapy
|
||||
|
||||
A combination of antimicrobials is considered as good as its most active
|
||||
antimicrobial: `"S"` is preferred over `"WT"`, and `"R"` over `"NWT"`
|
||||
and `"NS"`. The value `"NI"` (non-interpretable) is considered a missing
|
||||
result.
|
||||
Results are ordered from susceptible to resistant: S (and WT), SDD, I, R
|
||||
(and NWT, NS). With `method = "most_susceptible"` (in
|
||||
[`sir_combine()`](https://amr-for-r.org/reference/sir_combine.md)), the
|
||||
most susceptible result of the antimicrobials is returned, and with
|
||||
`method = "most_resistant"`, the most resistant result. The value `"NI"`
|
||||
(non-interpretable) is considered a missing result.
|
||||
|
||||
A missing result can only be ignored if the result of the combination is
|
||||
susceptible regardless of the missing result, which depends on the
|
||||
`only_all_tested` argument and on the guideline: under EUCAST, the 'I'
|
||||
category is considered susceptible (*susceptible, increased exposure*),
|
||||
and under CLSI, it is not.
|
||||
A missing result can only be ignored if it cannot change the conclusion:
|
||||
a susceptible result for `"most_susceptible"`, and a non-susceptible
|
||||
result for `"most_resistant"`. Under EUCAST, the 'I' category is
|
||||
considered susceptible (*susceptible, increased exposure*), and under
|
||||
CLSI, it is not. With `only_all_tested = TRUE`, any missing result leads
|
||||
to `NA`.
|
||||
|
||||
This is an example for two antimicrobials, Drug A and Drug B (the order
|
||||
of the antimicrobials does not matter):
|
||||
This is an example for two antimicrobials, Drug A and Drug B, under
|
||||
EUCAST (the order of the antimicrobials does not matter):
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
Result of the combination
|
||||
-----------------------------------------------------
|
||||
Drug A Drug B only_all_tested = FALSE only_all_tested = TRUE
|
||||
-------- -------- ---------------------------- ----------------------
|
||||
S S, I, R S S
|
||||
I I, R I I
|
||||
R R R R
|
||||
S <NA> S <NA>
|
||||
I <NA> I (EUCAST), <NA> (CLSI) <NA>
|
||||
R <NA> <NA> <NA>
|
||||
<NA> <NA> <NA> <NA>
|
||||
Result of method = Result of method =
|
||||
"most_susceptible" "most_resistant"
|
||||
----------------------- -----------------------------
|
||||
only_all_tested = only_all_tested =
|
||||
Drug A Drug B FALSE TRUE FALSE TRUE
|
||||
-------- -------- --------- --------- ----------- -------------
|
||||
S S S S S S
|
||||
S I S S I I
|
||||
S R S S R R
|
||||
I R I I R R
|
||||
R R R R R R
|
||||
S <NA> S <NA> <NA> <NA>
|
||||
I <NA> I <NA> <NA> <NA>
|
||||
R <NA> <NA> <NA> R <NA>
|
||||
<NA> <NA> <NA> <NA> <NA> <NA>
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Under CLSI, the combination of I with a missing result is `<NA>` for
|
||||
`"most_susceptible"` and I for `"most_resistant"`.
|
||||
|
||||
The `count_*()` and
|
||||
[`proportion_*()`](https://amr-for-r.org/reference/proportion.md)
|
||||
functions, such as
|
||||
functions apply these rules when more than one variable is used. With
|
||||
`only_all_tested = FALSE` (default), the functions for susceptibility,
|
||||
such as
|
||||
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md) and
|
||||
[`resistance()`](https://amr-for-r.org/reference/proportion.md), apply
|
||||
exactly these rules when more than one variable is used: an isolate is
|
||||
considered tested if the result of the combination is not `NA`, and is
|
||||
then counted by the result of the combination. Consequently,
|
||||
`count_susceptible()` `+` `count_resistant()` `=` `count_all()`, and
|
||||
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md) `+`
|
||||
[`resistance()`](https://amr-for-r.org/reference/proportion.md) `= 1`,
|
||||
for both values of `only_all_tested`. The guideline is taken from their
|
||||
`guideline` argument if they have one, and otherwise from the
|
||||
`AMR_guideline` option.
|
||||
`count_susceptible()`, count an isolate as susceptible if any of the
|
||||
antimicrobials is susceptible (`"most_susceptible"`), and the functions
|
||||
for resistance, such as
|
||||
[`resistance()`](https://amr-for-r.org/reference/proportion.md) and
|
||||
`count_resistant()`, count an isolate as resistant if any of the
|
||||
antimicrobials is resistant (`"most_resistant"`). An isolate is
|
||||
considered tested if it has such a result, or if it was tested for all
|
||||
antimicrobials. Therefore, for combinations with
|
||||
`only_all_tested = FALSE`:
|
||||
|
||||
count_S() + count_I() + count_R() >= count_all()
|
||||
proportion_S() + proportion_I() + proportion_R() >= 1
|
||||
|
||||
With `only_all_tested = TRUE`, all these functions count the result of
|
||||
the combination therapy (`"most_susceptible"`) of isolates tested for
|
||||
all antimicrobials, so that:
|
||||
|
||||
count_S() + count_I() + count_R() = count_all()
|
||||
proportion_S() + proportion_I() + proportion_R() = 1
|
||||
|
||||
In [`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md) and
|
||||
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), the 'I' and
|
||||
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), the result
|
||||
of the combination therapy (`"most_susceptible"`) is used, the 'I' and
|
||||
'SDD' categories are considered susceptible if `combine_SI = TRUE`
|
||||
(default), and the result of the combination is then reduced to S or R.
|
||||
(default), and the result is then reduced to S or R.
|
||||
|
||||
## See also
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -9,7 +9,7 @@ To improve the interpretation of the antibiogram before CLSI/EUCAST interpretive
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -9,7 +9,7 @@ This data set is carefully crafted, yet made 100% reproducible from public and a
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -9,7 +9,7 @@ This is the fastest way to have your organisation (or analysis) specific codes p
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ Especially the scale_*_mic() functions are relevant wrappers to plot MIC values
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+28
-18
@@ -9,7 +9,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@@ -198,24 +198,34 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
<h2 id="combination-therapy">Combination Therapy<a class="anchor" aria-label="anchor" href="#combination-therapy"></a></h2>
|
||||
|
||||
|
||||
<p>A combination of antimicrobials is considered as good as its most active antimicrobial: <code>"S"</code> is preferred over <code>"WT"</code>, and <code>"R"</code> over <code>"NWT"</code> and <code>"NS"</code>. The value <code>"NI"</code> (non-interpretable) is considered a missing result.</p>
|
||||
<p>A missing result can only be ignored if the result of the combination is susceptible regardless of the missing result, which depends on the <code>only_all_tested</code> argument and on the guideline: under EUCAST, the 'I' category is considered susceptible (<em>susceptible, increased exposure</em>), and under CLSI, it is not.</p>
|
||||
<p>This is an example for two antimicrobials, Drug A and Drug B (the order of the antimicrobials does not matter):</p>
|
||||
<p>Results are ordered from susceptible to resistant: S (and WT), SDD, I, R (and NWT, NS). With <code>method = "most_susceptible"</code> (in <code><a href="sir_combine.html">sir_combine()</a></code>), the most susceptible result of the antimicrobials is returned, and with <code>method = "most_resistant"</code>, the most resistant result. The value <code>"NI"</code> (non-interpretable) is considered a missing result.</p>
|
||||
<p>A missing result can only be ignored if it cannot change the conclusion: a susceptible result for <code>"most_susceptible"</code>, and a non-susceptible result for <code>"most_resistant"</code>. Under EUCAST, the 'I' category is considered susceptible (<em>susceptible, increased exposure</em>), and under CLSI, it is not. With <code>only_all_tested = TRUE</code>, any missing result leads to <code>NA</code>.</p>
|
||||
<p>This is an example for two antimicrobials, Drug A and Drug B, under EUCAST (the order of the antimicrobials does not matter):</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> Result of the combination</span>
|
||||
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a> <span class="sc">-----------------------------------------------------</span></span>
|
||||
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a> Drug A Drug B only_all_tested <span class="ot">=</span> <span class="cn">FALSE</span> only_all_tested <span class="ot">=</span> <span class="cn">TRUE</span></span>
|
||||
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a><span class="sc">--------</span> <span class="sc">--------</span> <span class="sc">----------------------------</span> <span class="sc">----------------------</span></span>
|
||||
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a> S S, I, R S S</span>
|
||||
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a> I I, R I I</span>
|
||||
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a> R R R R</span>
|
||||
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="fu">I</span> (EUCAST), <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> (CLSI) <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-11"><a href="#cb1-11" tabindex="-1"></a> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-12"><a href="#cb1-12" tabindex="-1"></a> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span></code></pre><p></p></div>
|
||||
<p>The <code><a href="count.html">count_*()</a></code> and <code>proportion_*()</code> functions, such as <code>susceptibility()</code> and <code>resistance()</code>, apply exactly these rules when more than one variable is used: an isolate is considered tested if the result of the combination is not <code>NA</code>, and is then counted by the result of the combination. Consequently, <code><a href="count.html">count_susceptible()</a></code> <code>+</code> <code><a href="count.html">count_resistant()</a></code> <code>=</code> <code><a href="count.html">count_all()</a></code>, and <code>susceptibility()</code> <code>+</code> <code>resistance()</code> <code>= 1</code>, for both values of <code>only_all_tested</code>. The guideline is taken from their <code>guideline</code> argument if they have one, and otherwise from the <code>AMR_guideline</code> option.</p>
|
||||
<p>In <code><a href="antibiogram.html">antibiogram()</a></code> and <code><a href="antibiogram.html">wisca()</a></code>, the 'I' and 'SDD' categories are considered susceptible if <code>combine_SI = TRUE</code> (default), and the result of the combination is then reduced to S or R.</p>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> Result of method <span class="ot">=</span> Result of method <span class="ot">=</span></span>
|
||||
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a> <span class="st">"most_susceptible"</span> <span class="st">"most_resistant"</span></span>
|
||||
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a> <span class="sc">-----------------------</span> <span class="sc">-----------------------------</span></span>
|
||||
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a> only_all_tested <span class="ot">=</span> only_all_tested <span class="ot">=</span></span>
|
||||
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a> Drug A Drug B <span class="cn">FALSE</span> <span class="cn">TRUE</span> <span class="cn">FALSE</span> <span class="cn">TRUE</span></span>
|
||||
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a><span class="sc">--------</span> <span class="sc">--------</span> <span class="sc">---------</span> <span class="sc">---------</span> <span class="sc">-----------</span> <span class="sc">-------------</span></span>
|
||||
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a> S S S S S S</span>
|
||||
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a> S I S S I I</span>
|
||||
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a> S R S S R R</span>
|
||||
<span id="cb1-11"><a href="#cb1-11" tabindex="-1"></a> I R I I R R</span>
|
||||
<span id="cb1-12"><a href="#cb1-12" tabindex="-1"></a> R R R R R R</span>
|
||||
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-14"><a href="#cb1-14" tabindex="-1"></a> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-15"><a href="#cb1-15" tabindex="-1"></a> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-16"><a href="#cb1-16" tabindex="-1"></a> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-17"><a href="#cb1-17" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span></code></pre><p></p></div>
|
||||
<p>Under CLSI, the combination of I with a missing result is <code><NA></code> for <code>"most_susceptible"</code> and I for <code>"most_resistant"</code>.</p>
|
||||
<p>The <code><a href="count.html">count_*()</a></code> and <code>proportion_*()</code> functions apply these rules when more than one variable is used. With <code>only_all_tested = FALSE</code> (default), the functions for susceptibility, such as <code>susceptibility()</code> and <code><a href="count.html">count_susceptible()</a></code>, count an isolate as susceptible if any of the antimicrobials is susceptible (<code>"most_susceptible"</code>), and the functions for resistance, such as <code>resistance()</code> and <code><a href="count.html">count_resistant()</a></code>, count an isolate as resistant if any of the antimicrobials is resistant (<code>"most_resistant"</code>). An isolate is considered tested if it has such a result, or if it was tested for all antimicrobials. Therefore, for combinations with <code>only_all_tested = FALSE</code>:</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a> <span class="fu">count_S</span>() <span class="sc">+</span> <span class="fu">count_I</span>() <span class="sc">+</span> <span class="fu">count_R</span>() <span class="sc">>=</span> <span class="fu">count_all</span>()</span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> <span class="fu">proportion_S</span>() <span class="sc">+</span> <span class="fu">proportion_I</span>() <span class="sc">+</span> <span class="fu">proportion_R</span>() <span class="sc">>=</span> <span class="dv">1</span></span></code></pre><p></p></div>
|
||||
<p>With <code>only_all_tested = TRUE</code>, all these functions count the result of the combination therapy (<code>"most_susceptible"</code>) of isolates tested for all antimicrobials, so that:</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a> <span class="fu">count_S</span>() <span class="sc">+</span> <span class="fu">count_I</span>() <span class="sc">+</span> <span class="fu">count_R</span>() <span class="ot">=</span> <span class="fu">count_all</span>()</span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> <span class="fu">proportion_S</span>() <span class="sc">+</span> <span class="fu">proportion_I</span>() <span class="sc">+</span> <span class="fu">proportion_R</span>() <span class="ot">=</span> <span class="dv">1</span></span></code></pre><p></p></div>
|
||||
<p>In <code><a href="antibiogram.html">antibiogram()</a></code> and <code><a href="antibiogram.html">wisca()</a></code>, the result of the combination therapy (<code>"most_susceptible"</code>) is used, the 'I' and 'SDD' categories are considered susceptible if <code>combine_SI = TRUE</code> (default), and the result is then reduced to S or R.</p>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
<h2 id="references">References<a class="anchor" aria-label="anchor" href="#references"></a></h2>
|
||||
|
||||
+57
-36
@@ -241,52 +241,73 @@ susceptible isolates.
|
||||
|
||||
## Combination Therapy
|
||||
|
||||
A combination of antimicrobials is considered as good as its most active
|
||||
antimicrobial: `"S"` is preferred over `"WT"`, and `"R"` over `"NWT"`
|
||||
and `"NS"`. The value `"NI"` (non-interpretable) is considered a missing
|
||||
result.
|
||||
Results are ordered from susceptible to resistant: S (and WT), SDD, I, R
|
||||
(and NWT, NS). With `method = "most_susceptible"` (in
|
||||
[`sir_combine()`](https://amr-for-r.org/reference/sir_combine.md)), the
|
||||
most susceptible result of the antimicrobials is returned, and with
|
||||
`method = "most_resistant"`, the most resistant result. The value `"NI"`
|
||||
(non-interpretable) is considered a missing result.
|
||||
|
||||
A missing result can only be ignored if the result of the combination is
|
||||
susceptible regardless of the missing result, which depends on the
|
||||
`only_all_tested` argument and on the guideline: under EUCAST, the 'I'
|
||||
category is considered susceptible (*susceptible, increased exposure*),
|
||||
and under CLSI, it is not.
|
||||
A missing result can only be ignored if it cannot change the conclusion:
|
||||
a susceptible result for `"most_susceptible"`, and a non-susceptible
|
||||
result for `"most_resistant"`. Under EUCAST, the 'I' category is
|
||||
considered susceptible (*susceptible, increased exposure*), and under
|
||||
CLSI, it is not. With `only_all_tested = TRUE`, any missing result leads
|
||||
to `NA`.
|
||||
|
||||
This is an example for two antimicrobials, Drug A and Drug B (the order
|
||||
of the antimicrobials does not matter):
|
||||
This is an example for two antimicrobials, Drug A and Drug B, under
|
||||
EUCAST (the order of the antimicrobials does not matter):
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
Result of the combination
|
||||
-----------------------------------------------------
|
||||
Drug A Drug B only_all_tested = FALSE only_all_tested = TRUE
|
||||
-------- -------- ---------------------------- ----------------------
|
||||
S S, I, R S S
|
||||
I I, R I I
|
||||
R R R R
|
||||
S <NA> S <NA>
|
||||
I <NA> I (EUCAST), <NA> (CLSI) <NA>
|
||||
R <NA> <NA> <NA>
|
||||
<NA> <NA> <NA> <NA>
|
||||
Result of method = Result of method =
|
||||
"most_susceptible" "most_resistant"
|
||||
----------------------- -----------------------------
|
||||
only_all_tested = only_all_tested =
|
||||
Drug A Drug B FALSE TRUE FALSE TRUE
|
||||
-------- -------- --------- --------- ----------- -------------
|
||||
S S S S S S
|
||||
S I S S I I
|
||||
S R S S R R
|
||||
I R I I R R
|
||||
R R R R R R
|
||||
S <NA> S <NA> <NA> <NA>
|
||||
I <NA> I <NA> <NA> <NA>
|
||||
R <NA> <NA> <NA> R <NA>
|
||||
<NA> <NA> <NA> <NA> <NA> <NA>
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Under CLSI, the combination of I with a missing result is `<NA>` for
|
||||
`"most_susceptible"` and I for `"most_resistant"`.
|
||||
|
||||
The [`count_*()`](https://amr-for-r.org/reference/count.md) and
|
||||
`proportion_*()` functions, such as `susceptibility()` and
|
||||
`resistance()`, apply exactly these rules when more than one variable is
|
||||
used: an isolate is considered tested if the result of the combination
|
||||
is not `NA`, and is then counted by the result of the combination.
|
||||
Consequently,
|
||||
[`count_susceptible()`](https://amr-for-r.org/reference/count.md) `+`
|
||||
[`count_resistant()`](https://amr-for-r.org/reference/count.md) `=`
|
||||
[`count_all()`](https://amr-for-r.org/reference/count.md), and
|
||||
`susceptibility()` `+` `resistance()` `= 1`, for both values of
|
||||
`only_all_tested`. The guideline is taken from their `guideline`
|
||||
argument if they have one, and otherwise from the `AMR_guideline`
|
||||
option.
|
||||
`proportion_*()` functions apply these rules when more than one variable
|
||||
is used. With `only_all_tested = FALSE` (default), the functions for
|
||||
susceptibility, such as `susceptibility()` and
|
||||
[`count_susceptible()`](https://amr-for-r.org/reference/count.md), count
|
||||
an isolate as susceptible if any of the antimicrobials is susceptible
|
||||
(`"most_susceptible"`), and the functions for resistance, such as
|
||||
`resistance()` and
|
||||
[`count_resistant()`](https://amr-for-r.org/reference/count.md), count
|
||||
an isolate as resistant if any of the antimicrobials is resistant
|
||||
(`"most_resistant"`). An isolate is considered tested if it has such a
|
||||
result, or if it was tested for all antimicrobials. Therefore, for
|
||||
combinations with `only_all_tested = FALSE`:
|
||||
|
||||
count_S() + count_I() + count_R() >= count_all()
|
||||
proportion_S() + proportion_I() + proportion_R() >= 1
|
||||
|
||||
With `only_all_tested = TRUE`, all these functions count the result of
|
||||
the combination therapy (`"most_susceptible"`) of isolates tested for
|
||||
all antimicrobials, so that:
|
||||
|
||||
count_S() + count_I() + count_R() = count_all()
|
||||
proportion_S() + proportion_I() + proportion_R() = 1
|
||||
|
||||
In [`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md) and
|
||||
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), the 'I' and
|
||||
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), the result
|
||||
of the combination therapy (`"most_susceptible"`) is used, the 'I' and
|
||||
'SDD' categories are considered susceptible if `combine_SI = TRUE`
|
||||
(default), and the result of the combination is then reduced to S or R.
|
||||
(default), and the result is then reduced to S or R.
|
||||
|
||||
## References
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -9,7 +9,7 @@ NOTE: These functions are deprecated and will be removed in a future version. Us
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
+71
-24
@@ -1,7 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Combine SIR Results of Multiple Antimicrobials — sir_combine • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Combine SIR Results of Multiple Antimicrobials — sir_combine"><meta name="description" content="Combine the SIR results of two or more antimicrobials into one SIR result per isolate, e.g. to create a variable for the combination therapy of piperacillin/tazobactam with gentamicin. The result is the best result of the antimicrobials, as a combination therapy covers the isolate if any of its antimicrobials is active. See Combination Therapy below for the exact rules.
|
||||
The same rules are used by antibiogram() and wisca() for combination antibiograms, and by the count_*() and proportion_*() functions when more than one variable is used, so the result of sir_combine() can be used in any further analysis."><meta property="og:description" content="Combine the SIR results of two or more antimicrobials into one SIR result per isolate, e.g. to create a variable for the combination therapy of piperacillin/tazobactam with gentamicin. The result is the best result of the antimicrobials, as a combination therapy covers the isolate if any of its antimicrobials is active. See Combination Therapy below for the exact rules.
|
||||
The same rules are used by antibiogram() and wisca() for combination antibiograms, and by the count_*() and proportion_*() functions when more than one variable is used, so the result of sir_combine() can be used in any further analysis."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
|
||||
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Combine SIR Results of Multiple Antimicrobials — sir_combine • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Combine SIR Results of Multiple Antimicrobials — sir_combine"><meta name="description" content='Combine the SIR results of two or more antimicrobials into one SIR result per isolate. This can answer two different questions, set with the method argument:
|
||||
"most_susceptible" (default): Is at least one of these antimicrobials expected to work? This is the result of a combination therapy, e.g. piperacillin/tazobactam with gentamicin, which covers the isolate if any of its antimicrobials is active.
|
||||
"most_resistant": Is resistance demonstrated to any of these antimicrobials? This is the result for a group of antimicrobials, e.g. resistance to third-generation cephalosporins if an isolate is resistant to ceftazidime or ceftriaxone, as used in surveillance reports.
|
||||
|
||||
|
||||
See Combination Therapy below for the exact rules. The same rules are used by antibiogram() and wisca() for combination antibiograms, and by the count_*() and proportion_*() functions when more than one variable is used.'><meta property="og:description" content='Combine the SIR results of two or more antimicrobials into one SIR result per isolate. This can answer two different questions, set with the method argument:
|
||||
"most_susceptible" (default): Is at least one of these antimicrobials expected to work? This is the result of a combination therapy, e.g. piperacillin/tazobactam with gentamicin, which covers the isolate if any of its antimicrobials is active.
|
||||
"most_resistant": Is resistance demonstrated to any of these antimicrobials? This is the result for a group of antimicrobials, e.g. resistance to third-generation cephalosporins if an isolate is resistant to ceftazidime or ceftriaxone, as used in surveillance reports.
|
||||
|
||||
|
||||
See Combination Therapy below for the exact rules. The same rules are used by antibiogram() and wisca() for combination antibiograms, and by the count_*() and proportion_*() functions when more than one variable is used.'><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
|
||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||
|
||||
|
||||
@@ -9,7 +17,7 @@ The same rules are used by antibiogram() and wisca() for combination antibiogram
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@@ -52,14 +60,16 @@ The same rules are used by antibiogram() and wisca() for combination antibiogram
|
||||
</div>
|
||||
|
||||
<div class="ref-description section level2">
|
||||
<p>Combine the SIR results of two or more antimicrobials into one SIR result per isolate, e.g. to create a variable for the combination therapy of piperacillin/tazobactam with gentamicin. The result is the best result of the antimicrobials, as a combination therapy covers the isolate if any of its antimicrobials is active. See <em>Combination Therapy</em> below for the exact rules.</p>
|
||||
<p>The same rules are used by <code><a href="antibiogram.html">antibiogram()</a></code> and <code><a href="antibiogram.html">wisca()</a></code> for combination antibiograms, and by the <code><a href="count.html">count_*()</a></code> and <code><a href="proportion.html">proportion_*()</a></code> functions when more than one variable is used, so the result of <code>sir_combine()</code> can be used in any further analysis.</p>
|
||||
<p>Combine the SIR results of two or more antimicrobials into one SIR result per isolate. This can answer two different questions, set with the <code>method</code> argument:</p><ul><li><p><code>"most_susceptible"</code> (default): <em>Is at least one of these antimicrobials expected to work?</em> This is the result of a combination therapy, e.g. piperacillin/tazobactam with gentamicin, which covers the isolate if any of its antimicrobials is active.</p></li>
|
||||
<li><p><code>"most_resistant"</code>: <em>Is resistance demonstrated to any of these antimicrobials?</em> This is the result for a group of antimicrobials, e.g. resistance to third-generation cephalosporins if an isolate is resistant to ceftazidime or ceftriaxone, as used in surveillance reports.</p></li>
|
||||
</ul><p>See <em>Combination Therapy</em> below for the exact rules. The same rules are used by <code><a href="antibiogram.html">antibiogram()</a></code> and <code><a href="antibiogram.html">wisca()</a></code> for combination antibiograms, and by the <code><a href="count.html">count_*()</a></code> and <code><a href="proportion.html">proportion_*()</a></code> functions when more than one variable is used.</p>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">sir_combine</span><span class="op">(</span></span>
|
||||
<span> <span class="va">...</span>,</span>
|
||||
<span> method <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"most_susceptible"</span>, <span class="st">"most_resistant"</span><span class="op">)</span>,</span>
|
||||
<span> only_all_tested <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> guideline <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_guideline"</span>, <span class="st">"EUCAST"</span><span class="op">)</span></span>
|
||||
<span><span class="op">)</span></span></code></pre></div>
|
||||
@@ -73,8 +83,12 @@ The same rules are used by antibiogram() and wisca() for combination antibiogram
|
||||
<dd><p>Two or more vectors (or columns) with antimicrobial interpretations, or a data frame with such columns. They will be transformed internally with <code><a href="as.sir.html">as.sir()</a></code> if needed. All vectors must be of the same length.</p></dd>
|
||||
|
||||
|
||||
<dt id="arg-method">method<a class="anchor" aria-label="anchor" href="#arg-method"></a></dt>
|
||||
<dd><p>Either <code>"most_susceptible"</code> (default) to return the most susceptible result, as for combination therapy, or <code>"most_resistant"</code> to return the most resistant result, as for resistance within a group of antimicrobials. See <em>Combination Therapy</em> below.</p></dd>
|
||||
|
||||
|
||||
<dt id="arg-only-all-tested">only_all_tested<a class="anchor" aria-label="anchor" href="#arg-only-all-tested"></a></dt>
|
||||
<dd><p>A <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to indicate that isolates must be tested for all antimicrobials. If <code>TRUE</code>, the result is <code>NA</code> for isolates with a missing result for any of the antimicrobials. If <code>FALSE</code> (default), a missing result only leads to <code>NA</code> if a result for the missing antimicrobial could have changed the result of the combination, see <em>Combination Therapy</em> below.</p></dd>
|
||||
<dd><p>A <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to indicate that isolates must be tested for all antimicrobials. If <code>TRUE</code>, the result is <code>NA</code> for isolates with a missing result for any of the antimicrobials. If <code>FALSE</code> (default), a missing result only leads to <code>NA</code> if a result for the missing antimicrobial could have changed the result, see <em>Combination Therapy</em> below.</p></dd>
|
||||
|
||||
|
||||
<dt id="arg-guideline">guideline<a class="anchor" aria-label="anchor" href="#arg-guideline"></a></dt>
|
||||
@@ -89,24 +103,34 @@ The same rules are used by antibiogram() and wisca() for combination antibiogram
|
||||
<h2 id="combination-therapy">Combination Therapy<a class="anchor" aria-label="anchor" href="#combination-therapy"></a></h2>
|
||||
|
||||
|
||||
<p>A combination of antimicrobials is considered as good as its most active antimicrobial: <code>"S"</code> is preferred over <code>"WT"</code>, and <code>"R"</code> over <code>"NWT"</code> and <code>"NS"</code>. The value <code>"NI"</code> (non-interpretable) is considered a missing result.</p>
|
||||
<p>A missing result can only be ignored if the result of the combination is susceptible regardless of the missing result, which depends on the <code>only_all_tested</code> argument and on the guideline: under EUCAST, the 'I' category is considered susceptible (<em>susceptible, increased exposure</em>), and under CLSI, it is not.</p>
|
||||
<p>This is an example for two antimicrobials, Drug A and Drug B (the order of the antimicrobials does not matter):</p>
|
||||
<p>Results are ordered from susceptible to resistant: S (and WT), SDD, I, R (and NWT, NS). With <code>method = "most_susceptible"</code> (in <code>sir_combine()</code>), the most susceptible result of the antimicrobials is returned, and with <code>method = "most_resistant"</code>, the most resistant result. The value <code>"NI"</code> (non-interpretable) is considered a missing result.</p>
|
||||
<p>A missing result can only be ignored if it cannot change the conclusion: a susceptible result for <code>"most_susceptible"</code>, and a non-susceptible result for <code>"most_resistant"</code>. Under EUCAST, the 'I' category is considered susceptible (<em>susceptible, increased exposure</em>), and under CLSI, it is not. With <code>only_all_tested = TRUE</code>, any missing result leads to <code>NA</code>.</p>
|
||||
<p>This is an example for two antimicrobials, Drug A and Drug B, under EUCAST (the order of the antimicrobials does not matter):</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> Result of the combination</span>
|
||||
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a> <span class="sc">-----------------------------------------------------</span></span>
|
||||
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a> Drug A Drug B only_all_tested <span class="ot">=</span> <span class="cn">FALSE</span> only_all_tested <span class="ot">=</span> <span class="cn">TRUE</span></span>
|
||||
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a><span class="sc">--------</span> <span class="sc">--------</span> <span class="sc">----------------------------</span> <span class="sc">----------------------</span></span>
|
||||
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a> S S, I, R S S</span>
|
||||
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a> I I, R I I</span>
|
||||
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a> R R R R</span>
|
||||
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="fu">I</span> (EUCAST), <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> (CLSI) <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-11"><a href="#cb1-11" tabindex="-1"></a> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-12"><a href="#cb1-12" tabindex="-1"></a> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span></code></pre><p></p></div>
|
||||
<p>The <code><a href="count.html">count_*()</a></code> and <code><a href="proportion.html">proportion_*()</a></code> functions, such as <code><a href="proportion.html">susceptibility()</a></code> and <code><a href="proportion.html">resistance()</a></code>, apply exactly these rules when more than one variable is used: an isolate is considered tested if the result of the combination is not <code>NA</code>, and is then counted by the result of the combination. Consequently, <code><a href="count.html">count_susceptible()</a></code> <code>+</code> <code><a href="count.html">count_resistant()</a></code> <code>=</code> <code><a href="count.html">count_all()</a></code>, and <code><a href="proportion.html">susceptibility()</a></code> <code>+</code> <code><a href="proportion.html">resistance()</a></code> <code>= 1</code>, for both values of <code>only_all_tested</code>. The guideline is taken from their <code>guideline</code> argument if they have one, and otherwise from the <code>AMR_guideline</code> option.</p>
|
||||
<p>In <code><a href="antibiogram.html">antibiogram()</a></code> and <code><a href="antibiogram.html">wisca()</a></code>, the 'I' and 'SDD' categories are considered susceptible if <code>combine_SI = TRUE</code> (default), and the result of the combination is then reduced to S or R.</p>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> Result of method <span class="ot">=</span> Result of method <span class="ot">=</span></span>
|
||||
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a> <span class="st">"most_susceptible"</span> <span class="st">"most_resistant"</span></span>
|
||||
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a> <span class="sc">-----------------------</span> <span class="sc">-----------------------------</span></span>
|
||||
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a> only_all_tested <span class="ot">=</span> only_all_tested <span class="ot">=</span></span>
|
||||
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a> Drug A Drug B <span class="cn">FALSE</span> <span class="cn">TRUE</span> <span class="cn">FALSE</span> <span class="cn">TRUE</span></span>
|
||||
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a><span class="sc">--------</span> <span class="sc">--------</span> <span class="sc">---------</span> <span class="sc">---------</span> <span class="sc">-----------</span> <span class="sc">-------------</span></span>
|
||||
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a> S S S S S S</span>
|
||||
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a> S I S S I I</span>
|
||||
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a> S R S S R R</span>
|
||||
<span id="cb1-11"><a href="#cb1-11" tabindex="-1"></a> I R I I R R</span>
|
||||
<span id="cb1-12"><a href="#cb1-12" tabindex="-1"></a> R R R R R R</span>
|
||||
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> S <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-14"><a href="#cb1-14" tabindex="-1"></a> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> I <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-15"><a href="#cb1-15" tabindex="-1"></a> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> R <span class="sc"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-16"><a href="#cb1-16" tabindex="-1"></a> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span> <span class="er"><</span><span class="cn">NA</span><span class="sc">></span></span>
|
||||
<span id="cb1-17"><a href="#cb1-17" tabindex="-1"></a><span class="sc">-------------------------------------------------------------------------</span></span></code></pre><p></p></div>
|
||||
<p>Under CLSI, the combination of I with a missing result is <code><NA></code> for <code>"most_susceptible"</code> and I for <code>"most_resistant"</code>.</p>
|
||||
<p>The <code><a href="count.html">count_*()</a></code> and <code><a href="proportion.html">proportion_*()</a></code> functions apply these rules when more than one variable is used. With <code>only_all_tested = FALSE</code> (default), the functions for susceptibility, such as <code><a href="proportion.html">susceptibility()</a></code> and <code><a href="count.html">count_susceptible()</a></code>, count an isolate as susceptible if any of the antimicrobials is susceptible (<code>"most_susceptible"</code>), and the functions for resistance, such as <code><a href="proportion.html">resistance()</a></code> and <code><a href="count.html">count_resistant()</a></code>, count an isolate as resistant if any of the antimicrobials is resistant (<code>"most_resistant"</code>). An isolate is considered tested if it has such a result, or if it was tested for all antimicrobials. Therefore, for combinations with <code>only_all_tested = FALSE</code>:</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a> <span class="fu">count_S</span>() <span class="sc">+</span> <span class="fu">count_I</span>() <span class="sc">+</span> <span class="fu">count_R</span>() <span class="sc">>=</span> <span class="fu">count_all</span>()</span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> <span class="fu">proportion_S</span>() <span class="sc">+</span> <span class="fu">proportion_I</span>() <span class="sc">+</span> <span class="fu">proportion_R</span>() <span class="sc">>=</span> <span class="dv">1</span></span></code></pre><p></p></div>
|
||||
<p>With <code>only_all_tested = TRUE</code>, all these functions count the result of the combination therapy (<code>"most_susceptible"</code>) of isolates tested for all antimicrobials, so that:</p>
|
||||
<p></p><div class="sourceCode"><pre><code><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a> <span class="fu">count_S</span>() <span class="sc">+</span> <span class="fu">count_I</span>() <span class="sc">+</span> <span class="fu">count_R</span>() <span class="ot">=</span> <span class="fu">count_all</span>()</span>
|
||||
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a> <span class="fu">proportion_S</span>() <span class="sc">+</span> <span class="fu">proportion_I</span>() <span class="sc">+</span> <span class="fu">proportion_R</span>() <span class="ot">=</span> <span class="dv">1</span></span></code></pre><p></p></div>
|
||||
<p>In <code><a href="antibiogram.html">antibiogram()</a></code> and <code><a href="antibiogram.html">wisca()</a></code>, the result of the combination therapy (<code>"most_susceptible"</code>) is used, the 'I' and 'SDD' categories are considered susceptible if <code>combine_SI = TRUE</code> (default), and the result is then reduced to S or R.</p>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
<h2 id="see-also">See also<a class="anchor" aria-label="anchor" href="#see-also"></a></h2>
|
||||
@@ -118,6 +142,7 @@ The same rules are used by antibiogram() and wisca() for combination antibiogram
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">drug_a</span> <span class="op"><-</span> <span class="fu"><a href="as.sir.html">as.sir</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"S"</span>, <span class="st">"R"</span>, <span class="st">"R"</span>, <span class="st">"I"</span>, <span class="st">"I"</span>, <span class="cn">NA</span>, <span class="st">"R"</span>, <span class="st">"SDD"</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">drug_b</span> <span class="op"><-</span> <span class="fu"><a href="as.sir.html">as.sir</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"R"</span>, <span class="st">"S"</span>, <span class="st">"R"</span>, <span class="st">"R"</span>, <span class="cn">NA</span>, <span class="cn">NA</span>, <span class="cn">NA</span>, <span class="st">"I"</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># combination therapy: is at least one of them expected to work?</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">sir_combine</span><span class="op">(</span><span class="va">drug_a</span>, <span class="va">drug_b</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S S R I I <NA> <NA> SDD </span>
|
||||
@@ -128,6 +153,11 @@ The same rules are used by antibiogram() and wisca() for combination antibiogram
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S S R I <NA> <NA> <NA> SDD </span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># resistance within a group: is resistance demonstrated to any of them?</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">sir_combine</span><span class="op">(</span><span class="va">drug_a</span>, <span class="va">drug_b</span>, method <span class="op">=</span> <span class="st">"most_resistant"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R R R R <NA> <NA> R I </span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># the count and proportion functions use the same rules</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="proportion.html">susceptibility</a></span><span class="op">(</span><span class="va">drug_a</span>, <span class="va">drug_b</span>, minimum <span class="op">=</span> <span class="fl">0</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note that `proportion_SI()` will also include dose-dependent susceptibility,</span>
|
||||
@@ -135,6 +165,10 @@ The same rules are used by antibiogram() and wisca() for combination antibiogram
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.8333333</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="proportion.html">susceptibility</a></span><span class="op">(</span><span class="fu">sir_combine</span><span class="op">(</span><span class="va">drug_a</span>, <span class="va">drug_b</span><span class="op">)</span>, minimum <span class="op">=</span> <span class="fl">0</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.8333333</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="proportion.html">resistance</a></span><span class="op">(</span><span class="va">drug_a</span>, <span class="va">drug_b</span>, minimum <span class="op">=</span> <span class="fl">0</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.8333333</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="proportion.html">resistance</a></span><span class="op">(</span><span class="fu">sir_combine</span><span class="op">(</span><span class="va">drug_a</span>, <span class="va">drug_b</span>, method <span class="op">=</span> <span class="st">"most_resistant"</span><span class="op">)</span>, minimum <span class="op">=</span> <span class="fl">0</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.8333333</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># \donttest{</span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
@@ -159,6 +193,19 @@ The same rules are used by antibiogram() and wisca() for combination antibiogram
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> <span style="color: #949494;">B_</span>STRPT<span style="color: #949494;">_</span>SLVR <span style="color: #080808; background-color: #5FD7AF;"> S </span> <span style="color: #080808; background-color: #FF5F5F;"> R </span> <span style="color: #080808; background-color: #5FD7AF;"> S </span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 991 more rows</span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="co"># resistance to third-generation cephalosporins</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">example_isolates</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span>cephalosporins_3rd <span class="op">=</span> <span class="fu">sir_combine</span><span class="op">(</span><span class="va">CAZ</span>, <span class="va">CRO</span>, method <span class="op">=</span> <span class="st">"most_resistant"</span><span class="op">)</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="count.html">count</a></span><span class="op">(</span><span class="va">cephalosporins_3rd</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 4 × 2</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> cephalosporins_3rd n</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> <span style="color: #080808; background-color: #5FD7AF;"> S </span> 573</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> <span style="color: #080808; background-color: #AFFFD7;"> I </span> 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> <span style="color: #080808; background-color: #FF5F5F;"> R </span> <span style="text-decoration: underline;">1</span>236</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> <span style="color: #949494;"> NA</span> 190</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="co"># combine any number of antimicrobials</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">example_isolates</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span>any_aminoglycoside <span class="op">=</span> <span class="fu">sir_combine</span><span class="op">(</span><span class="va">GEN</span>, <span class="va">TOB</span>, <span class="va">AMK</span>, <span class="va">KAN</span><span class="op">)</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
|
||||
+104
-46
@@ -1,26 +1,35 @@
|
||||
# Combine SIR Results of Multiple Antimicrobials
|
||||
|
||||
Combine the SIR results of two or more antimicrobials into one SIR
|
||||
result per isolate, e.g. to create a variable for the combination
|
||||
therapy of piperacillin/tazobactam with gentamicin. The result is the
|
||||
best result of the antimicrobials, as a combination therapy covers the
|
||||
isolate if any of its antimicrobials is active. See *Combination
|
||||
Therapy* below for the exact rules.
|
||||
result per isolate. This can answer two different questions, set with
|
||||
the `method` argument:
|
||||
|
||||
The same rules are used by
|
||||
- `"most_susceptible"` (default): *Is at least one of these
|
||||
antimicrobials expected to work?* This is the result of a combination
|
||||
therapy, e.g. piperacillin/tazobactam with gentamicin, which covers
|
||||
the isolate if any of its antimicrobials is active.
|
||||
|
||||
- `"most_resistant"`: *Is resistance demonstrated to any of these
|
||||
antimicrobials?* This is the result for a group of antimicrobials,
|
||||
e.g. resistance to third-generation cephalosporins if an isolate is
|
||||
resistant to ceftazidime or ceftriaxone, as used in surveillance
|
||||
reports.
|
||||
|
||||
See *Combination Therapy* below for the exact rules. The same rules are
|
||||
used by
|
||||
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md) and
|
||||
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md) for
|
||||
combination antibiograms, and by the
|
||||
[`count_*()`](https://amr-for-r.org/reference/count.md) and
|
||||
[`proportion_*()`](https://amr-for-r.org/reference/proportion.md)
|
||||
functions when more than one variable is used, so the result of
|
||||
`sir_combine()` can be used in any further analysis.
|
||||
functions when more than one variable is used.
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
sir_combine(
|
||||
...,
|
||||
method = c("most_susceptible", "most_resistant"),
|
||||
only_all_tested = FALSE,
|
||||
guideline = getOption("AMR_guideline", "EUCAST")
|
||||
)
|
||||
@@ -35,6 +44,13 @@ sir_combine(
|
||||
with [`as.sir()`](https://amr-for-r.org/reference/as.sir.md) if
|
||||
needed. All vectors must be of the same length.
|
||||
|
||||
- method:
|
||||
|
||||
Either `"most_susceptible"` (default) to return the most susceptible
|
||||
result, as for combination therapy, or `"most_resistant"` to return
|
||||
the most resistant result, as for resistance within a group of
|
||||
antimicrobials. See *Combination Therapy* below.
|
||||
|
||||
- only_all_tested:
|
||||
|
||||
A [logical](https://rdrr.io/r/base/logical.html) to indicate that
|
||||
@@ -42,7 +58,7 @@ sir_combine(
|
||||
is `NA` for isolates with a missing result for any of the
|
||||
antimicrobials. If `FALSE` (default), a missing result only leads to
|
||||
`NA` if a result for the missing antimicrobial could have changed the
|
||||
result of the combination, see *Combination Therapy* below.
|
||||
result, see *Combination Therapy* below.
|
||||
|
||||
- guideline:
|
||||
|
||||
@@ -60,55 +76,74 @@ same length as the input.
|
||||
|
||||
## Combination Therapy
|
||||
|
||||
A combination of antimicrobials is considered as good as its most active
|
||||
antimicrobial: `"S"` is preferred over `"WT"`, and `"R"` over `"NWT"`
|
||||
and `"NS"`. The value `"NI"` (non-interpretable) is considered a missing
|
||||
result.
|
||||
Results are ordered from susceptible to resistant: S (and WT), SDD, I, R
|
||||
(and NWT, NS). With `method = "most_susceptible"` (in `sir_combine()`),
|
||||
the most susceptible result of the antimicrobials is returned, and with
|
||||
`method = "most_resistant"`, the most resistant result. The value `"NI"`
|
||||
(non-interpretable) is considered a missing result.
|
||||
|
||||
A missing result can only be ignored if the result of the combination is
|
||||
susceptible regardless of the missing result, which depends on the
|
||||
`only_all_tested` argument and on the guideline: under EUCAST, the 'I'
|
||||
category is considered susceptible (*susceptible, increased exposure*),
|
||||
and under CLSI, it is not.
|
||||
A missing result can only be ignored if it cannot change the conclusion:
|
||||
a susceptible result for `"most_susceptible"`, and a non-susceptible
|
||||
result for `"most_resistant"`. Under EUCAST, the 'I' category is
|
||||
considered susceptible (*susceptible, increased exposure*), and under
|
||||
CLSI, it is not. With `only_all_tested = TRUE`, any missing result leads
|
||||
to `NA`.
|
||||
|
||||
This is an example for two antimicrobials, Drug A and Drug B (the order
|
||||
of the antimicrobials does not matter):
|
||||
This is an example for two antimicrobials, Drug A and Drug B, under
|
||||
EUCAST (the order of the antimicrobials does not matter):
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
Result of the combination
|
||||
-----------------------------------------------------
|
||||
Drug A Drug B only_all_tested = FALSE only_all_tested = TRUE
|
||||
-------- -------- ---------------------------- ----------------------
|
||||
S S, I, R S S
|
||||
I I, R I I
|
||||
R R R R
|
||||
S <NA> S <NA>
|
||||
I <NA> I (EUCAST), <NA> (CLSI) <NA>
|
||||
R <NA> <NA> <NA>
|
||||
<NA> <NA> <NA> <NA>
|
||||
Result of method = Result of method =
|
||||
"most_susceptible" "most_resistant"
|
||||
----------------------- -----------------------------
|
||||
only_all_tested = only_all_tested =
|
||||
Drug A Drug B FALSE TRUE FALSE TRUE
|
||||
-------- -------- --------- --------- ----------- -------------
|
||||
S S S S S S
|
||||
S I S S I I
|
||||
S R S S R R
|
||||
I R I I R R
|
||||
R R R R R R
|
||||
S <NA> S <NA> <NA> <NA>
|
||||
I <NA> I <NA> <NA> <NA>
|
||||
R <NA> <NA> <NA> R <NA>
|
||||
<NA> <NA> <NA> <NA> <NA> <NA>
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Under CLSI, the combination of I with a missing result is `<NA>` for
|
||||
`"most_susceptible"` and I for `"most_resistant"`.
|
||||
|
||||
The [`count_*()`](https://amr-for-r.org/reference/count.md) and
|
||||
[`proportion_*()`](https://amr-for-r.org/reference/proportion.md)
|
||||
functions, such as
|
||||
functions apply these rules when more than one variable is used. With
|
||||
`only_all_tested = FALSE` (default), the functions for susceptibility,
|
||||
such as
|
||||
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md) and
|
||||
[`resistance()`](https://amr-for-r.org/reference/proportion.md), apply
|
||||
exactly these rules when more than one variable is used: an isolate is
|
||||
considered tested if the result of the combination is not `NA`, and is
|
||||
then counted by the result of the combination. Consequently,
|
||||
[`count_susceptible()`](https://amr-for-r.org/reference/count.md) `+`
|
||||
[`count_resistant()`](https://amr-for-r.org/reference/count.md) `=`
|
||||
[`count_all()`](https://amr-for-r.org/reference/count.md), and
|
||||
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md) `+`
|
||||
[`resistance()`](https://amr-for-r.org/reference/proportion.md) `= 1`,
|
||||
for both values of `only_all_tested`. The guideline is taken from their
|
||||
`guideline` argument if they have one, and otherwise from the
|
||||
`AMR_guideline` option.
|
||||
[`count_susceptible()`](https://amr-for-r.org/reference/count.md), count
|
||||
an isolate as susceptible if any of the antimicrobials is susceptible
|
||||
(`"most_susceptible"`), and the functions for resistance, such as
|
||||
[`resistance()`](https://amr-for-r.org/reference/proportion.md) and
|
||||
[`count_resistant()`](https://amr-for-r.org/reference/count.md), count
|
||||
an isolate as resistant if any of the antimicrobials is resistant
|
||||
(`"most_resistant"`). An isolate is considered tested if it has such a
|
||||
result, or if it was tested for all antimicrobials. Therefore, for
|
||||
combinations with `only_all_tested = FALSE`:
|
||||
|
||||
count_S() + count_I() + count_R() >= count_all()
|
||||
proportion_S() + proportion_I() + proportion_R() >= 1
|
||||
|
||||
With `only_all_tested = TRUE`, all these functions count the result of
|
||||
the combination therapy (`"most_susceptible"`) of isolates tested for
|
||||
all antimicrobials, so that:
|
||||
|
||||
count_S() + count_I() + count_R() = count_all()
|
||||
proportion_S() + proportion_I() + proportion_R() = 1
|
||||
|
||||
In [`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md) and
|
||||
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), the 'I' and
|
||||
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), the result
|
||||
of the combination therapy (`"most_susceptible"`) is used, the 'I' and
|
||||
'SDD' categories are considered susceptible if `combine_SI = TRUE`
|
||||
(default), and the result of the combination is then reduced to S or R.
|
||||
(default), and the result is then reduced to S or R.
|
||||
|
||||
## See also
|
||||
|
||||
@@ -125,6 +160,7 @@ combination antibiograms.
|
||||
drug_a <- as.sir(c("S", "R", "R", "I", "I", NA, "R", "SDD"))
|
||||
drug_b <- as.sir(c("R", "S", "R", "R", NA, NA, NA, "I"))
|
||||
|
||||
# combination therapy: is at least one of them expected to work?
|
||||
sir_combine(drug_a, drug_b)
|
||||
#> Class <sir>
|
||||
#> [1] S S R I I <NA> <NA> SDD
|
||||
@@ -135,6 +171,11 @@ sir_combine(drug_a, drug_b, only_all_tested = TRUE)
|
||||
#> Class <sir>
|
||||
#> [1] S S R I <NA> <NA> <NA> SDD
|
||||
|
||||
# resistance within a group: is resistance demonstrated to any of them?
|
||||
sir_combine(drug_a, drug_b, method = "most_resistant")
|
||||
#> Class <sir>
|
||||
#> [1] R R R R <NA> <NA> R I
|
||||
|
||||
# the count and proportion functions use the same rules
|
||||
susceptibility(drug_a, drug_b, minimum = 0)
|
||||
#> Note that `proportion_SI()` will also include dose-dependent susceptibility,
|
||||
@@ -142,6 +183,10 @@ susceptibility(drug_a, drug_b, minimum = 0)
|
||||
#> [1] 0.8333333
|
||||
susceptibility(sir_combine(drug_a, drug_b), minimum = 0)
|
||||
#> [1] 0.8333333
|
||||
resistance(drug_a, drug_b, minimum = 0)
|
||||
#> [1] 0.8333333
|
||||
resistance(sir_combine(drug_a, drug_b, method = "most_resistant"), minimum = 0)
|
||||
#> [1] 0.8333333
|
||||
|
||||
# \donttest{
|
||||
if (require("dplyr")) {
|
||||
@@ -165,6 +210,19 @@ if (require("dplyr")) {
|
||||
#> 9 B_STRPT_PNMN S R S
|
||||
#> 10 B_STRPT_SLVR S R S
|
||||
#> # ℹ 991 more rows
|
||||
if (require("dplyr")) {
|
||||
# resistance to third-generation cephalosporins
|
||||
example_isolates %>%
|
||||
mutate(cephalosporins_3rd = sir_combine(CAZ, CRO, method = "most_resistant")) %>%
|
||||
count(cephalosporins_3rd)
|
||||
}
|
||||
#> # A tibble: 4 × 2
|
||||
#> cephalosporins_3rd n
|
||||
#> <sir> <int>
|
||||
#> 1 S 573
|
||||
#> 2 I 1
|
||||
#> 3 R 1236
|
||||
#> 4 NA 190
|
||||
if (require("dplyr")) {
|
||||
# combine any number of antimicrobials
|
||||
example_isolates %>%
|
||||
|
||||
@@ -9,7 +9,7 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9122</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9123</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
Reference in new issue
Block a user