mirror of
https://github.com/msberends/AMR.git
synced 2026-11-29 02:46:10 +01:00
Built site for AMR@3.0.1.9138: 499b039
This commit is contained in:
1 parent
840ba97370
commit
c3087b8247
152 files changed
+1685
-1369
No files matched your search
@@ -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.9137</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9138</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">
|
||||
@@ -101,7 +101,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
<span> language <span class="op">=</span> <span class="fu"><a href="translate.html">get_AMR_locale</a></span><span class="op">(</span><span class="op">)</span>,</span>
|
||||
<span> minimum <span class="op">=</span> <span class="fl">30</span>,</span>
|
||||
<span> as_percent <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> combine_SI <span class="op">=</span> <span class="cn">TRUE</span>,</span>
|
||||
<span> <span class="va">combine_SI</span>,</span>
|
||||
<span> confidence_level <span class="op">=</span> <span class="fl">0.95</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>
|
||||
@@ -112,7 +112,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
<span> language <span class="op">=</span> <span class="fu"><a href="translate.html">get_AMR_locale</a></span><span class="op">(</span><span class="op">)</span>,</span>
|
||||
<span> minimum <span class="op">=</span> <span class="fl">30</span>,</span>
|
||||
<span> as_percent <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> combine_SI <span class="op">=</span> <span class="cn">TRUE</span>,</span>
|
||||
<span> <span class="va">combine_SI</span>,</span>
|
||||
<span> confidence_level <span class="op">=</span> <span class="fl">0.95</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>
|
||||
@@ -139,9 +139,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
|
||||
|
||||
<dt id="arg-guideline">guideline<a class="anchor" aria-label="anchor" href="#arg-guideline"></a></dt>
|
||||
<dd><p>Either <code>"EUCAST"</code> (default) or <code>"CLSI"</code>. With EUCAST, the 'I' category will be considered as susceptible (see <a href="https://www.eucast.org/bacteria/clinical-breakpoints-and-interpretation/definition-of-s-i-and-r/" class="external-link">EUCAST website</a>), but with with CLSI, it will be considered resistant. Therefore:</p><ul><li><p>EUCAST: <code>susceptibility()</code> \(= \%S + \%I\), <code>resistance()</code> \(= \%R\)</p></li>
|
||||
<li><p>CLSI: <code>susceptibility()</code> \(= \%S + \%SDD\), <code>resistance()</code> \(= \%I + \%R\)</p></li>
|
||||
</ul><p>You can also use e.g. <code>proportion_R()</code> or <code>proportion_S()</code> instead, to be explicit. For <code>proportion_df()</code>, <code><a href="count.html">count_df()</a></code>, and <code>sir_df()</code>, the guideline determines how 'I' is merged when <code>combine_SI = TRUE</code>.</p></dd>
|
||||
<dd><p>A guideline name, <code>"EUCAST"</code> or <code>"CLSI"</code> (or any version thereof, e.g. <code>"CLSI 2025"</code>), to determine whether the 'I' category is considered susceptible (EUCAST) or resistant (CLSI). The default is the package option <code><a href="AMR-options.html">AMR_guideline</a></code>, or <code>"EUCAST"</code> if it is not set. For functions that return results per category, i.e., <code><a href="count.html">count_df()</a></code>, <code>proportion_df()</code>, <code>sir_df()</code>, <code><a href="ggplot_sir.html">ggplot_sir()</a></code>, <code><a href="ggplot_sir.html">geom_sir()</a></code>, and <code><a href="ggplot_sir.html">labels_sir_count()</a></code>, this can also be <code>NULL</code> or <code>FALSE</code> to keep S, I, and R separate. See section <em>Interpretation of SIR</em> below.</p></dd>
|
||||
|
||||
|
||||
<dt id="arg-ab-result">ab_result<a class="anchor" aria-label="anchor" href="#arg-ab-result"></a></dt>
|
||||
@@ -173,7 +171,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
|
||||
|
||||
<dt id="arg-combine-si">combine_SI<a class="anchor" aria-label="anchor" href="#arg-combine-si"></a></dt>
|
||||
<dd><p>A <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to indicate whether the 'I' category must be merged with another category, so the output only consists of susceptible vs. resistant - the default is <code>TRUE</code>. Following the <code>guideline</code> argument, the output then consists of <code>"SI"</code> (S+SDD+I) vs. <code>"R"</code> with EUCAST, and of <code>"S"</code> (S+SDD) vs. <code>"IR"</code> (I+R) with CLSI.</p></dd>
|
||||
<dd><p><em>(deprecated in favour of <code>guideline</code>)</em> A <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a>. If set, it takes precedence over <code>guideline</code>: <code>TRUE</code> merges S, SDD, and I into <code>"SI"</code> vs. <code>"R"</code>, and <code>FALSE</code> keeps S, I, and R separate.</p></dd>
|
||||
|
||||
</dl></div>
|
||||
<div class="section level2">
|
||||
@@ -194,7 +192,13 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
|
||||
|
||||
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R (<a href="https://www.eucast.org/bacteria/clinical-breakpoints-and-interpretation/definition-of-s-i-and-r/" class="external-link">https://www.eucast.org/bacteria/clinical-breakpoints-and-interpretation/definition-of-s-i-and-r/</a>).</p>
|
||||
<p>This AMR package follows insight; use <code>susceptibility()</code> (equal to <code>proportion_SI()</code>) to determine antimicrobial susceptibility and <code><a href="count.html">count_susceptible()</a></code> (equal to <code><a href="count.html">count_SI()</a></code>) to count susceptible isolates.</p>
|
||||
<p>In aggregated analyses, such as proportions, counts, antibiograms, and plots, the 'I' category must be considered either susceptible or resistant. In epidemiological AMR data analysis, this follows the guideline: EUCAST considers 'I' susceptible, while CLSI considers 'I' resistant. The dose-dependent susceptibility of CLSI ('SDD') is always considered susceptible, as it equals what EUCAST defines as 'I'. All functions with a <code>guideline</code> argument for this purpose use these categories:</p><table class="table table"><tr><td><code>guideline</code></td><td>Susceptible</td><td>Resistant</td></tr><tr><td><code>"EUCAST"</code></td><td>S, SDD, I, WT</td><td>R, NWT, NS</td></tr><tr><td><code>"CLSI"</code></td><td>S, SDD, WT</td><td>I, R, NWT, NS</td></tr></table><p>The values 'WT' (wild type) and 'NWT' (non-wild type) result from epidemiological cut-off values (ECOFFs) instead of clinical breakpoints. Since they are no clinical categories, 'WT' is always considered susceptible and 'NWT' always resistant, regardless of the guideline. The value 'NS' (non-susceptible) is always considered resistant, and 'NI' (non-interpretable) is always considered a missing result.</p>
|
||||
<p>The <code>guideline</code> argument can be:</p><ul><li><p><strong>Left unset</strong>, to use the package option <code><a href="AMR-options.html">AMR_guideline</a></code>, or <code>"EUCAST"</code> if this option is not set. In the latter case, a message is shown once per session (but not in R Markdown or Quarto documents); set the option to silence it.</p></li>
|
||||
<li><p><strong><code>"EUCAST"</code></strong>, or any EUCAST version such as <code>"EUCAST 2025"</code>, to consider 'I' susceptible, e.g., to return <code>"SI"</code> vs. <code>"R"</code> in <code>proportion_df()</code>.</p></li>
|
||||
<li><p><strong><code>"CLSI"</code></strong>, or any CLSI version such as <code>"CLSI 2025"</code>, to consider 'I' resistant, e.g., to return <code>"S"</code> vs. <code>"IR"</code> in <code>proportion_df()</code>.</p></li>
|
||||
<li><p><strong><code>NULL</code> or <code>FALSE</code></strong>, to keep S, I, and R separate. This is only possible in functions that return results per category: <code><a href="count.html">count_df()</a></code>, <code>proportion_df()</code>, <code>sir_df()</code>, <code><a href="ggplot_sir.html">ggplot_sir()</a></code>, <code><a href="ggplot_sir.html">geom_sir()</a></code>, <code><a href="ggplot_sir.html">labels_sir_count()</a></code>, and <code><a href="bug_drug_combinations.html">bug_drug_combinations()</a></code>. Functions that return a single proportion or count, such as <code>susceptibility()</code>, <code><a href="count.html">count_resistant()</a></code>, <code><a href="antibiogram.html">antibiogram()</a></code>, <code><a href="antibiogram.html">wisca()</a></code>, and <code><a href="https://rdrr.io/r/base/format.html" class="external-link">format()</a></code> on the result of <code><a href="bug_drug_combinations.html">bug_drug_combinations()</a></code>, require 'I' to be considered either susceptible or resistant, and return an error.</p></li>
|
||||
</ul><p>Use <code>susceptibility()</code> and <code>resistance()</code> (or <code><a href="count.html">count_susceptible()</a></code> and <code><a href="count.html">count_resistant()</a></code>) to follow the guideline, or e.g. <code>proportion_SI()</code> and <code>proportion_R()</code> to be explicit regardless of the guideline.</p>
|
||||
<p>The <code>combine_SI</code> argument of the functions that return results per category, <code><a href="antibiogram.html">antibiogram()</a></code>, and <code><a href="antibiogram.html">wisca()</a></code> is deprecated in favour of <code>guideline</code>. If set, it is followed literally and takes precedence over <code>guideline</code>.</p>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
<h2 id="combination-therapy">Combination Therapy<a class="anchor" aria-label="anchor" href="#combination-therapy"></a></h2>
|
||||
@@ -227,7 +231,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
<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>
|
||||
<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' category is considered susceptible or not following the <code>guideline</code> argument ('SDD' is always considered susceptible), 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>
|
||||
@@ -420,6 +424,16 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">group_by</a></span><span class="op">(</span><span class="va">ward</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">sir_df</span><span class="op">(</span>translate <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> `proportion_df()` assumes the EUCAST guideline and thus considers the 'I'</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> category susceptible (S+SDD+I vs. R). Use `guideline = "CLSI"` for S+SDD vs.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> I+R, or `guideline = NULL` to keep S, I, and R separate. Set the `guideline`</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> argument, or set the `AMR_guideline` option to change the default (see</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> `?AMR-options`). This message is shown once per session.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> `sir_df()` assumes the EUCAST guideline and thus considers the 'I' category</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> susceptible (S+SDD+I vs. R). Use `guideline = "CLSI"` for S+SDD vs. I+R, or</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> `guideline = NULL` to keep S, I, and R separate. Set the `guideline`</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> argument, or set the `AMR_guideline` option to change the default (see</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> `?AMR-options`). This message is shown once per session.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 12 × 7</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward antibiotic interpretation value ci_min ci_max isolates</span>
|
||||
<span class="r-out co"><span class="r-pr">#></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;"><ord></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
|
||||
Reference in new issue
Block a user