Built site for AMR@3.0.1.9129: 9ebc33a
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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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 @@ 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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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">
|
||||
|
||||
@@ -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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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">
|
||||
|
||||
@@ -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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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-13 <span style="color: #949494;">10:33:40</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-13 <span style="color: #949494;">10:33:40</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-13 <span style="color: #949494;">10:33:40</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-13 <span style="color: #949494;">10:33:40</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-13 <span style="color: #949494;">19:51:23</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-13 <span style="color: #949494;">19:51:23</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-13 <span style="color: #949494;">19:51:23</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-13 <span style="color: #949494;">19:51:23</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>
|
||||
|
||||
@@ -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-13 10:33:40 1 MIC amoxicillin Escherich… human 8
|
||||
#> 2 2026-10-13 10:33:40 1 MIC cipro Escherich… human 0.256
|
||||
#> 3 2026-10-13 10:33:40 1 DISK tobra Escherich… human 16
|
||||
#> 4 2026-10-13 10:33:40 1 DISK genta Escherich… human 18
|
||||
#> 1 2026-10-13 19:51:23 1 MIC amoxicillin Escherich… human 8
|
||||
#> 2 2026-10-13 19:51:23 1 MIC cipro Escherich… human 0.256
|
||||
#> 3 2026-10-13 19:51:23 1 DISK tobra Escherich… human 16
|
||||
#> 4 2026-10-13 19:51:23 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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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 @@ 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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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">
|
||||
@@ -118,15 +118,15 @@
|
||||
<span class="r-in"><span><span class="va">mic</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_mic</a></span><span class="op">(</span><span class="fl">10</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">mic</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><mic></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.032 0.064 0.125 0.5 0.016 0.008 <=0.0005 0.032 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [9] 0.5 1 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.032 0.032 0.125 0.25 0.016 0.004 <=0.0005 0.016 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [9] 0.25 0.5 </span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">mic</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.20876566 0.09541835 0.38919449 0.99756251 -0.51294967 -0.81713368</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -2.03386972 -0.20876566 0.99756251 1.30174652</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.02823448 -0.02823448 0.61480238 0.94191703 -0.35534914 -1.00957846</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.99092244 -0.35534914 0.94191703 1.26903169</span>
|
||||
<span class="r-in"><span><span class="co"># equal to the Z-score of their log2:</span></span></span>
|
||||
<span class="r-in"><span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2</a></span><span class="op">(</span><span class="va">mic</span><span class="op">)</span> <span class="op">-</span> <span class="fu"><a href="https://rdrr.io/r/base/mean.html" class="external-link">mean</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2</a></span><span class="op">(</span><span class="va">mic</span><span class="op">)</span><span class="op">)</span><span class="op">)</span> <span class="op">/</span> <span class="fu"><a href="https://rdrr.io/r/stats/sd.html" class="external-link">sd</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2</a></span><span class="op">(</span><span class="va">mic</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.20876566 0.09541835 0.38919449 0.99756251 -0.51294967 -0.81713368</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -2.03386972 -0.20876566 0.99756251 1.30174652</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.02823448 -0.02823448 0.61480238 0.94191703 -0.35534914 -1.00957846</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.99092244 -0.35534914 0.94191703 1.26903169</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">disk</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_disk</a></span><span class="op">(</span><span class="fl">10</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">disk</span></span></span>
|
||||
@@ -145,35 +145,35 @@
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">y</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A R 26 4 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B R 28 8 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C R 31 8 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 30 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 32 8 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F S 28 32 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 33 <=2 >=8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 24 <=2 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I S 20 <=2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J R 19 16 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A R 26 <=2 >=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B R 28 <=2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C R 30 <=2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 30 <=2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 31 4 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F S 28 4 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 32 <=2 >=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 25 <=2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I S 21 <=2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J R 20 4 1</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">y</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> Calculating mean AMR distance based on columns <span style="color: #0000BB;">"amox"</span>, <span style="color: #0000BB;">"cipr"</span>, <span style="color: #0000BB;">"gent"</span>, and</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> <span style="color: #0000BB;">"tobr"</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.31430391 0.09942875 0.25436185 0.26948082 0.08306514 0.24576214</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.26823618 -0.44796371 -1.15734233 0.07066724</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.48908793 0.01826958 0.14037829 0.14037829 0.24464016 0.06147710</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.38107241 -0.63923513 -0.88345255 0.04738391</span>
|
||||
<span class="r-in"><span><span class="va">y</span><span class="op">$</span><span class="va">amr_distance</span> <span class="op"><-</span> <span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">y</span>, <span class="fu"><a href="as.mic.html">is.mic</a></span><span class="op">(</span><span class="va">y</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> Calculating mean AMR distance based on columns <span style="color: #0000BB;">"gent"</span> and <span style="color: #0000BB;">"tobr"</span></span>
|
||||
<span class="r-in"><span><span class="va">y</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/order.html" class="external-link">order</a></span><span class="op">(</span><span class="va">y</span><span class="op">$</span><span class="va">amr_distance</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr amr_distance</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I S 20 <=2 1 -1.1069930</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B R 28 8 1 -0.3684440</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C R 31 8 1 -0.3684440</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 30 4 2 -0.2349174</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 24 <=2 4 -0.1013907</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 32 8 2 0.1343571</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A R 26 4 4 0.2678838</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 33 <=2 >=8 0.4014105</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J R 19 16 2 0.5036316</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F S 28 32 2 0.8729061</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B R 28 <=2 1 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C R 30 <=2 1 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 30 <=2 1 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 25 <=2 1 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I S 21 <=2 1 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 31 4 1 0.4873980</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F S 28 4 1 0.4873980</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J R 20 4 1 0.4873980</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A R 26 <=2 >=2 0.6381538</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 32 <=2 >=2 0.6381538</span>
|
||||
<span class="r-in"><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>
|
||||
<span class="r-in"><span> <span class="va">y</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
@@ -185,17 +185,17 @@
|
||||
<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> Calculating mean AMR distance based on columns <span style="color: #0000BB;">"amox"</span>, <span style="color: #0000BB;">"cipr"</span>, <span style="color: #0000BB;">"gent"</span>, and</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> <span style="color: #0000BB;">"tobr"</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr amr_distance check_id_C</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 C R 31 8 1 0.25436185 0.000000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 F S 28 32 2 0.24576214 0.008599711</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 G S 33 <=2 >=8 0.26823618 0.013874329</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 30 4 2 0.26948082 0.015118966</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 A R 26 4 4 0.31430391 0.059942062</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 B R 28 8 1 0.09942875 0.154933106</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 E I 32 8 2 0.08306514 0.171296709</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 J R 19 16 2 0.07066724 0.183694618</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 H I 24 <=2 4 -0.44796371 0.702325561</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 I S 20 <=2 1 -1.15734233 1.411704178</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr amr_distance check_id_C</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 C R 30 <=2 1 0.14037829 0.00000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 D R 30 <=2 1 0.14037829 0.00000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 F S 28 4 1 0.06147710 0.07890119</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 J R 20 4 1 0.04738391 0.09299437</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 31 4 1 0.24464016 0.10426187</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 B R 28 <=2 1 0.01826958 0.12210871</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 32 <=2 >=2 0.38107241 0.24069412</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 A R 26 <=2 >=2 0.48908793 0.34870964</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 H I 25 <=2 1 -0.63923513 0.77961342</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 I S 21 <=2 1 -0.88345255 1.02383084</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"># support for groups</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>
|
||||
|
||||
@@ -93,15 +93,15 @@ mean_amr_distance(sir)
|
||||
mic <- random_mic(10)
|
||||
mic
|
||||
#> Class <mic>
|
||||
#> [1] 0.032 0.064 0.125 0.5 0.016 0.008 <=0.0005 0.032
|
||||
#> [9] 0.5 1
|
||||
#> [1] 0.032 0.032 0.125 0.25 0.016 0.004 <=0.0005 0.016
|
||||
#> [9] 0.25 0.5
|
||||
mean_amr_distance(mic)
|
||||
#> [1] -0.20876566 0.09541835 0.38919449 0.99756251 -0.51294967 -0.81713368
|
||||
#> [7] -2.03386972 -0.20876566 0.99756251 1.30174652
|
||||
#> [1] -0.02823448 -0.02823448 0.61480238 0.94191703 -0.35534914 -1.00957846
|
||||
#> [7] -1.99092244 -0.35534914 0.94191703 1.26903169
|
||||
# equal to the Z-score of their log2:
|
||||
(log2(mic) - mean(log2(mic))) / sd(log2(mic))
|
||||
#> [1] -0.20876566 0.09541835 0.38919449 0.99756251 -0.51294967 -0.81713368
|
||||
#> [7] -2.03386972 -0.20876566 0.99756251 1.30174652
|
||||
#> [1] -0.02823448 -0.02823448 0.61480238 0.94191703 -0.35534914 -1.00957846
|
||||
#> [7] -1.99092244 -0.35534914 0.94191703 1.26903169
|
||||
|
||||
disk <- random_disk(10)
|
||||
disk
|
||||
@@ -120,35 +120,35 @@ y <- data.frame(
|
||||
)
|
||||
y
|
||||
#> id amox cipr gent tobr
|
||||
#> 1 A R 26 4 4
|
||||
#> 2 B R 28 8 1
|
||||
#> 3 C R 31 8 1
|
||||
#> 4 D R 30 4 2
|
||||
#> 5 E I 32 8 2
|
||||
#> 6 F S 28 32 2
|
||||
#> 7 G S 33 <=2 >=8
|
||||
#> 8 H I 24 <=2 4
|
||||
#> 9 I S 20 <=2 1
|
||||
#> 10 J R 19 16 2
|
||||
#> 1 A R 26 <=2 >=2
|
||||
#> 2 B R 28 <=2 1
|
||||
#> 3 C R 30 <=2 1
|
||||
#> 4 D R 30 <=2 1
|
||||
#> 5 E I 31 4 1
|
||||
#> 6 F S 28 4 1
|
||||
#> 7 G S 32 <=2 >=2
|
||||
#> 8 H I 25 <=2 1
|
||||
#> 9 I S 21 <=2 1
|
||||
#> 10 J R 20 4 1
|
||||
mean_amr_distance(y)
|
||||
#> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent", and
|
||||
#> "tobr"
|
||||
#> [1] 0.31430391 0.09942875 0.25436185 0.26948082 0.08306514 0.24576214
|
||||
#> [7] 0.26823618 -0.44796371 -1.15734233 0.07066724
|
||||
#> [1] 0.48908793 0.01826958 0.14037829 0.14037829 0.24464016 0.06147710
|
||||
#> [7] 0.38107241 -0.63923513 -0.88345255 0.04738391
|
||||
y$amr_distance <- mean_amr_distance(y, is.mic(y))
|
||||
#> ℹ Calculating mean AMR distance based on columns "gent" and "tobr"
|
||||
y[order(y$amr_distance), ]
|
||||
#> id amox cipr gent tobr amr_distance
|
||||
#> 9 I S 20 <=2 1 -1.1069930
|
||||
#> 2 B R 28 8 1 -0.3684440
|
||||
#> 3 C R 31 8 1 -0.3684440
|
||||
#> 4 D R 30 4 2 -0.2349174
|
||||
#> 8 H I 24 <=2 4 -0.1013907
|
||||
#> 5 E I 32 8 2 0.1343571
|
||||
#> 1 A R 26 4 4 0.2678838
|
||||
#> 7 G S 33 <=2 >=8 0.4014105
|
||||
#> 10 J R 19 16 2 0.5036316
|
||||
#> 6 F S 28 32 2 0.8729061
|
||||
#> 2 B R 28 <=2 1 -0.5477003
|
||||
#> 3 C R 30 <=2 1 -0.5477003
|
||||
#> 4 D R 30 <=2 1 -0.5477003
|
||||
#> 8 H I 25 <=2 1 -0.5477003
|
||||
#> 9 I S 21 <=2 1 -0.5477003
|
||||
#> 5 E I 31 4 1 0.4873980
|
||||
#> 6 F S 28 4 1 0.4873980
|
||||
#> 10 J R 20 4 1 0.4873980
|
||||
#> 1 A R 26 <=2 >=2 0.6381538
|
||||
#> 7 G S 32 <=2 >=2 0.6381538
|
||||
|
||||
if (require("dplyr")) {
|
||||
y %>%
|
||||
@@ -160,17 +160,17 @@ if (require("dplyr")) {
|
||||
}
|
||||
#> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent", and
|
||||
#> "tobr"
|
||||
#> id amox cipr gent tobr amr_distance check_id_C
|
||||
#> 1 C R 31 8 1 0.25436185 0.000000000
|
||||
#> 2 F S 28 32 2 0.24576214 0.008599711
|
||||
#> 3 G S 33 <=2 >=8 0.26823618 0.013874329
|
||||
#> 4 D R 30 4 2 0.26948082 0.015118966
|
||||
#> 5 A R 26 4 4 0.31430391 0.059942062
|
||||
#> 6 B R 28 8 1 0.09942875 0.154933106
|
||||
#> 7 E I 32 8 2 0.08306514 0.171296709
|
||||
#> 8 J R 19 16 2 0.07066724 0.183694618
|
||||
#> 9 H I 24 <=2 4 -0.44796371 0.702325561
|
||||
#> 10 I S 20 <=2 1 -1.15734233 1.411704178
|
||||
#> id amox cipr gent tobr amr_distance check_id_C
|
||||
#> 1 C R 30 <=2 1 0.14037829 0.00000000
|
||||
#> 2 D R 30 <=2 1 0.14037829 0.00000000
|
||||
#> 3 F S 28 4 1 0.06147710 0.07890119
|
||||
#> 4 J R 20 4 1 0.04738391 0.09299437
|
||||
#> 5 E I 31 4 1 0.24464016 0.10426187
|
||||
#> 6 B R 28 <=2 1 0.01826958 0.12210871
|
||||
#> 7 G S 32 <=2 >=2 0.38107241 0.24069412
|
||||
#> 8 A R 26 <=2 >=2 0.48908793 0.34870964
|
||||
#> 9 H I 25 <=2 1 -0.63923513 0.77961342
|
||||
#> 10 I S 21 <=2 1 -0.88345255 1.02383084
|
||||
if (require("dplyr")) {
|
||||
# support for groups
|
||||
example_isolates %>%
|
||||
|
||||
@@ -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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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">
|
||||
|
||||
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 90 KiB |
@@ -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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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">
|
||||
@@ -377,7 +377,7 @@ Especially the scale_*_mic() functions are relevant wrappers to plot MIC values
|
||||
<span class="r-in"><span> <span class="co"># support for 27 languages, various guidelines, and many options</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot</a></span><span class="op">(</span><span class="va">some_disk_values</span>,</span></span>
|
||||
<span class="r-in"><span> mo <span class="op">=</span> <span class="st">"Escherichia coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span>,</span></span>
|
||||
<span class="r-in"><span> guideline <span class="op">=</span> <span class="st">"CLSI 2024"</span>, language <span class="op">=</span> <span class="st">"no"</span>,</span></span>
|
||||
<span class="r-in"><span> guideline <span class="op">=</span> <span class="st">"CLSI"</span>, language <span class="op">=</span> <span class="st">"no"</span>,</span></span>
|
||||
<span class="r-in"><span> title <span class="op">=</span> <span class="st">"Disk diffusion from the North"</span></span></span>
|
||||
<span class="r-in"><span> <span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
|
||||
@@ -423,7 +423,7 @@ if (require("ggplot2")) {
|
||||
# support for 27 languages, various guidelines, and many options
|
||||
autoplot(some_disk_values,
|
||||
mo = "Escherichia coli", ab = "cipro",
|
||||
guideline = "CLSI 2024", language = "no",
|
||||
guideline = "CLSI", language = "no",
|
||||
title = "Disk diffusion from the North"
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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">
|
||||
|
||||
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 49 KiB |
@@ -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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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">
|
||||
@@ -61,6 +61,7 @@
|
||||
<span> ab <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||
<span> skew <span class="op">=</span> <span class="st">"right"</span>,</span>
|
||||
<span> severity <span class="op">=</span> <span class="fl">1</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="va">...</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
@@ -70,6 +71,7 @@
|
||||
<span> ab <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||
<span> skew <span class="op">=</span> <span class="st">"left"</span>,</span>
|
||||
<span> severity <span class="op">=</span> <span class="fl">1</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="va">...</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
@@ -100,6 +102,10 @@
|
||||
<dd><p>Skew severity; higher values will increase the skewedness. Default is <code>2</code>; use <code>0</code> to prevent skewedness.</p></dd>
|
||||
|
||||
|
||||
<dt id="arg-guideline">guideline<a class="anchor" aria-label="anchor" href="#arg-guideline"></a></dt>
|
||||
<dd><p>A guideline name to base the generated values on, either <code>"EUCAST"</code> (default) or <code>"CLSI"</code> for the latest implemented version, or a guideline including a year (e.g., <code>"CLSI 2019"</code>). The default can be changed with the package option <code><a href="AMR-options.html">AMR_guideline</a></code>, see <code><a href="as.sir.html">as.sir()</a></code>.</p></dd>
|
||||
|
||||
|
||||
<dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt>
|
||||
<dd><p>Ignored, only in place to allow future extensions.</p></dd>
|
||||
|
||||
@@ -114,7 +120,7 @@
|
||||
</div>
|
||||
<div class="section level2">
|
||||
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
|
||||
<p>Internally, MIC and disk zone values are sampled based on clinical breakpoints defined in the <a href="clinical_breakpoints.html">clinical_breakpoints</a> data set. To create specific generated values per bug or drug, set the <code>mo</code> and/or <code>ab</code> argument. The MICs are sampled on a log2 scale and disks linearly, using weighted probabilities. The weights are based on the <code>skew</code> and <code>severity</code> arguments:</p><ul><li><p><code>skew = "right"</code> places more emphasis on lower MIC or higher disk values.</p></li>
|
||||
<p>Internally, MIC and disk zone values are sampled based on the human clinical breakpoints of <code>guideline</code> in the <a href="clinical_breakpoints.html">clinical_breakpoints</a> data set. To create specific generated values per bug or drug, set the <code>mo</code> and/or <code>ab</code> argument. The MICs are sampled on a log2 scale and disks linearly, using weighted probabilities. The weights are based on the <code>skew</code> and <code>severity</code> arguments:</p><ul><li><p><code>skew = "right"</code> places more emphasis on lower MIC or higher disk values.</p></li>
|
||||
<li><p><code>skew = "left"</code> places more emphasis on higher MIC or lower disk values.</p></li>
|
||||
<li><p><code>severity</code> controls the exponential bias applied.</p></li>
|
||||
</ul></div>
|
||||
@@ -123,9 +129,9 @@
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><mic></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.25 0.064 0.5 0.004 0.0001 0.032 0.008 16 0.016 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.0002 0.001 0.008 0.004 0.064 256 0.5 32 512 0.0002</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.004 1 0.002 0.0005 0.064 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.125 0.032 0.25 0.004 0.0001 0.016 0.004 8 0.008 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.0002 0.001 0.004 0.002 0.032 64 0.25 16 128 0.0002</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.004 0.5 0.002 0.0005 0.064 </span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><disk></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 49 44 31 11 27 33 39 24 19 43 30 44 33 31 22 13 37 19 26 29 44 12 46 18 27</span>
|
||||
@@ -138,19 +144,19 @@
|
||||
<span class="r-in"><span><span class="fu"><a href="plot.html">plot</a></span><span class="op">(</span><span class="va">disks</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="random-1.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-in"><span><span class="co"># `plot()` and `ggplot2::autoplot()` allow for coloured bars if `mo` and `ab` are set</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="plot.html">plot</a></span><span class="op">(</span><span class="va">disks</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span>, ab <span class="op">=</span> <span class="st">"CIP"</span>, guideline <span class="op">=</span> <span class="st">"CLSI 2025"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="plot.html">plot</a></span><span class="op">(</span><span class="va">disks</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span>, ab <span class="op">=</span> <span class="st">"CIP"</span>, guideline <span class="op">=</span> <span class="st">"CLSI"</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="random-2.png" alt="" width="700" height="433"></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="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span> <span class="co"># range 0.0625-64</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><mic></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.004 0.0002 0.008 0.25 0.0005 0.0002 8 0.032 0.0005 0.016 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.032 32 1 0.0005 0.016 0.002 0.016 0.0005 0.004 0.25 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.0005 0.016 0.001 0.25 0.032 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.002 0.0002 0.004 0.064 0.0005 0.0002 1 0.016 0.0005 0.008 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.008 2 0.125 0.0005 0.008 0.002 0.008 0.0005 0.002 0.064 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.0002 0.004 0.0005 0.064 0.016 </span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span>, <span class="st">"meropenem"</span><span class="op">)</span> <span class="co"># range 0.0625-16</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><mic></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.5 >=1 0.5 0.5 0.5 0.5 >=1 0.5 0.5 0.5 0.5 0.5 0.5 0.5 >=1 0.5 >=1 0.5 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [20] 0.5 0.5 >=1 >=1 >=1 >=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1 >=2 1 1 1 1 >=2 1 1 1 1 1 1 1 >=2 1 >=2 1 1 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [20] 1 1 >=2 >=2 >=2 >=2</span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"meropenem"</span><span class="op">)</span> <span class="co"># range 0.0625-4</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><mic></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.25 <=0.125 <=0.125 0.25 0.25 <=0.125 0.25 0.25 0.25 </span>
|
||||
@@ -159,13 +165,13 @@
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span> <span class="co"># range 8-50</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><disk></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 10 32 34 18 17 31 31 21 18 19 27 18 20 11 34 30 28 20 29 9 21 33 34 25 17</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 13 32 34 19 19 32 31 22 19 21 27 20 21 14 34 31 29 21 29 11 23 33 34 26 19</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span>, <span class="st">"ampicillin"</span><span class="op">)</span> <span class="co"># range 11-17</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><disk></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 17 17 20 22 13 21 21 14 11 18 18 18 21 18 14 22 19 20 18 16 17 12 22 21 19</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 15 15 17 18 13 17 18 13 11 15 16 16 17 16 13 18 16 17 16 15 15 12 18 18 16</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"ampicillin"</span><span class="op">)</span> <span class="co"># range 12-27</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><disk></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 24 31 26 26 33 16 29 17 28 27 27 35 33 33 29 32 18 33 33 29 28 32 25 17 31</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 21 26 23 23 27 17 24 17 24 23 23 28 27 27 24 27 18 27 27 25 24 26 22 17 26</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
||||
@@ -14,6 +14,7 @@ random_mic(
|
||||
ab = NULL,
|
||||
skew = "right",
|
||||
severity = 1,
|
||||
guideline = getOption("AMR_guideline", "EUCAST"),
|
||||
...
|
||||
)
|
||||
|
||||
@@ -23,6 +24,7 @@ random_disk(
|
||||
ab = NULL,
|
||||
skew = "left",
|
||||
severity = 1,
|
||||
guideline = getOption("AMR_guideline", "EUCAST"),
|
||||
...
|
||||
)
|
||||
|
||||
@@ -61,6 +63,15 @@ random_sir(size = NULL, prob_SIR = c(0.33, 0.33, 0.33), ...)
|
||||
Skew severity; higher values will increase the skewedness. Default is
|
||||
`2`; use `0` to prevent skewedness.
|
||||
|
||||
- guideline:
|
||||
|
||||
A guideline name to base the generated values on, either `"EUCAST"`
|
||||
(default) or `"CLSI"` for the latest implemented version, or a
|
||||
guideline including a year (e.g., `"CLSI 2019"`). The default can be
|
||||
changed with the package option
|
||||
[`AMR_guideline`](https://amr-for-r.org/reference/AMR-options.md), see
|
||||
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md).
|
||||
|
||||
- ...:
|
||||
|
||||
Ignored, only in place to allow future extensions.
|
||||
@@ -79,8 +90,8 @@ class `mic` for `random_mic()` (see
|
||||
|
||||
## Details
|
||||
|
||||
Internally, MIC and disk zone values are sampled based on clinical
|
||||
breakpoints defined in the
|
||||
Internally, MIC and disk zone values are sampled based on the human
|
||||
clinical breakpoints of `guideline` in the
|
||||
[clinical_breakpoints](https://amr-for-r.org/reference/clinical_breakpoints.md)
|
||||
data set. To create specific generated values per bug or drug, set the
|
||||
`mo` and/or `ab` argument. The MICs are sampled on a log2 scale and
|
||||
@@ -100,9 +111,9 @@ the `skew` and `severity` arguments:
|
||||
``` r
|
||||
random_mic(25)
|
||||
#> Class <mic>
|
||||
#> [1] 0.25 0.064 0.5 0.004 0.0001 0.032 0.008 16 0.016 0.125
|
||||
#> [11] 0.0002 0.001 0.008 0.004 0.064 256 0.5 32 512 0.0002
|
||||
#> [21] 0.004 1 0.002 0.0005 0.064
|
||||
#> [1] 0.125 0.032 0.25 0.004 0.0001 0.016 0.004 8 0.008 0.125
|
||||
#> [11] 0.0002 0.001 0.004 0.002 0.032 64 0.25 16 128 0.0002
|
||||
#> [21] 0.004 0.5 0.002 0.0005 0.064
|
||||
random_disk(25)
|
||||
#> Class <disk>
|
||||
#> [1] 49 44 31 11 27 33 39 24 19 43 30 44 33 31 22 13 37 19 26 29 44 12 46 18 27
|
||||
@@ -115,19 +126,19 @@ disks <- random_disk(100, severity = 2, mo = "Escherichia coli", ab = "CIP")
|
||||
plot(disks)
|
||||
|
||||
# `plot()` and `ggplot2::autoplot()` allow for coloured bars if `mo` and `ab` are set
|
||||
plot(disks, mo = "Escherichia coli", ab = "CIP", guideline = "CLSI 2025")
|
||||
plot(disks, mo = "Escherichia coli", ab = "CIP", guideline = "CLSI")
|
||||
|
||||
|
||||
# \donttest{
|
||||
random_mic(25, "Klebsiella pneumoniae") # range 0.0625-64
|
||||
#> Class <mic>
|
||||
#> [1] 0.004 0.0002 0.008 0.25 0.0005 0.0002 8 0.032 0.0005 0.016
|
||||
#> [11] 0.032 32 1 0.0005 0.016 0.002 0.016 0.0005 0.004 0.25
|
||||
#> [21] 0.0005 0.016 0.001 0.25 0.032
|
||||
#> [1] 0.002 0.0002 0.004 0.064 0.0005 0.0002 1 0.016 0.0005 0.008
|
||||
#> [11] 0.008 2 0.125 0.0005 0.008 0.002 0.008 0.0005 0.002 0.064
|
||||
#> [21] 0.0002 0.004 0.0005 0.064 0.016
|
||||
random_mic(25, "Klebsiella pneumoniae", "meropenem") # range 0.0625-16
|
||||
#> Class <mic>
|
||||
#> [1] 0.5 >=1 0.5 0.5 0.5 0.5 >=1 0.5 0.5 0.5 0.5 0.5 0.5 0.5 >=1 0.5 >=1 0.5 0.5
|
||||
#> [20] 0.5 0.5 >=1 >=1 >=1 >=1
|
||||
#> [1] 1 >=2 1 1 1 1 >=2 1 1 1 1 1 1 1 >=2 1 >=2 1 1
|
||||
#> [20] 1 1 >=2 >=2 >=2 >=2
|
||||
random_mic(25, "Streptococcus pneumoniae", "meropenem") # range 0.0625-4
|
||||
#> Class <mic>
|
||||
#> [1] 0.25 <=0.125 <=0.125 0.25 0.25 <=0.125 0.25 0.25 0.25
|
||||
@@ -136,12 +147,12 @@ random_mic(25, "Streptococcus pneumoniae", "meropenem") # range 0.0625-4
|
||||
|
||||
random_disk(25, "Klebsiella pneumoniae") # range 8-50
|
||||
#> Class <disk>
|
||||
#> [1] 10 32 34 18 17 31 31 21 18 19 27 18 20 11 34 30 28 20 29 9 21 33 34 25 17
|
||||
#> [1] 13 32 34 19 19 32 31 22 19 21 27 20 21 14 34 31 29 21 29 11 23 33 34 26 19
|
||||
random_disk(25, "Klebsiella pneumoniae", "ampicillin") # range 11-17
|
||||
#> Class <disk>
|
||||
#> [1] 17 17 20 22 13 21 21 14 11 18 18 18 21 18 14 22 19 20 18 16 17 12 22 21 19
|
||||
#> [1] 15 15 17 18 13 17 18 13 11 15 16 16 17 16 13 18 16 17 16 15 15 12 18 18 16
|
||||
random_disk(25, "Streptococcus pneumoniae", "ampicillin") # range 12-27
|
||||
#> Class <disk>
|
||||
#> [1] 24 31 26 26 33 16 29 17 28 27 27 35 33 33 29 32 18 33 33 29 28 32 25 17 31
|
||||
#> [1] 21 26 23 23 27 17 24 17 24 23 23 28 27 27 24 27 18 27 27 25 24 26 22 17 26
|
||||
# }
|
||||
```
|
||||
@@ -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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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">
|
||||
|
||||
@@ -17,7 +17,7 @@ See Combination Therapy below for the exact rules. The same rules are used by 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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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 @@ 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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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.9128</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9129</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">
|
||||
|
||||