Built site for AMR@3.1.0.9010: fdfdada
No files matched your search
@@ -30,7 +30,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="https://amr-for-r.org/index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -29,7 +29,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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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">
|
||||
@@ -715,9 +715,9 @@ Carlo simulation:</p>
|
||||
<th align="left">Piperacillin/tazobactam + Tobramycin</th>
|
||||
</tr></thead>
|
||||
<tbody><tr class="odd">
|
||||
<td align="left">70.1% (64.7-75.8%)</td>
|
||||
<td align="left">93.6% (92-95%)</td>
|
||||
<td align="left">89.9% (86.8-92.5%)</td>
|
||||
<td align="left">72.7% (67.5-77.4%)</td>
|
||||
<td align="left">96% (95-97%)</td>
|
||||
<td align="left">92.3% (89.7-94.6%)</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
<p>The output tells you: <em>“given the species distribution in your
|
||||
@@ -758,58 +758,58 @@ accepts any column or expression:</p>
|
||||
<tr class="odd">
|
||||
<td align="left">0-24</td>
|
||||
<td align="left">F</td>
|
||||
<td align="left">57.1% (29.9-82.1%)</td>
|
||||
<td align="left">71% (43.2-89%)</td>
|
||||
<td align="left">65.8% (43.5-86.2%)</td>
|
||||
<td align="left">75.5% (13.9-100%)</td>
|
||||
<td align="left">81.5% (55.4-98.2%)</td>
|
||||
<td align="left">84.4% (51.1-99.5%)</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">0-24</td>
|
||||
<td align="left">M</td>
|
||||
<td align="left">59.7% (30.7-86.3%)</td>
|
||||
<td align="left">75.8% (54.2-90.9%)</td>
|
||||
<td align="left">59.6% (32.6-85.2%)</td>
|
||||
<td align="left">82.7% (44.7-99.5%)</td>
|
||||
<td align="left">87.2% (68.3-98.2%)</td>
|
||||
<td align="left">83.3% (48.4-99.5%)</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">25-49</td>
|
||||
<td align="left">F</td>
|
||||
<td align="left">67.8% (43.6-90.4%)</td>
|
||||
<td align="left">93.8% (87.5-98.1%)</td>
|
||||
<td align="left">87.3% (71.3-96.9%)</td>
|
||||
<td align="left">91.9% (79.5-98.7%)</td>
|
||||
<td align="left">95.4% (88.9-98.9%)</td>
|
||||
<td align="left">88.1% (69.4-98.2%)</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">25-49</td>
|
||||
<td align="left">M</td>
|
||||
<td align="left">56.4% (25.9-85.2%)</td>
|
||||
<td align="left">91.2% (82.2-97.3%)</td>
|
||||
<td align="left">76.4% (51-93.6%)</td>
|
||||
<td align="left">81.1% (55.2-96.6%)</td>
|
||||
<td align="left">93.3% (85.2-98.3%)</td>
|
||||
<td align="left">85.1% (56.4-97.6%)</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">50-74</td>
|
||||
<td align="left">F</td>
|
||||
<td align="left">68.3% (54-82.2%)</td>
|
||||
<td align="left">96.9% (94.6-98.5%)</td>
|
||||
<td align="left">90.2% (82.1-96.2%)</td>
|
||||
<td align="left">75.4% (65.3-87.9%)</td>
|
||||
<td align="left">97% (94.7-98.6%)</td>
|
||||
<td align="left">90.1% (82.7-96.2%)</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">50-74</td>
|
||||
<td align="left">M</td>
|
||||
<td align="left">66.9% (56.3-78.5%)</td>
|
||||
<td align="left">96.7% (94.1-98.5%)</td>
|
||||
<td align="left">86.7% (77-94.6%)</td>
|
||||
<td align="left">68% (55.9-78.6%)</td>
|
||||
<td align="left">96.8% (93.9-98.7%)</td>
|
||||
<td align="left">86.9% (77.1-94.7%)</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">75+</td>
|
||||
<td align="left">F</td>
|
||||
<td align="left">73.2% (62.7-83.4%)</td>
|
||||
<td align="left">97.7% (95.9-98.9%)</td>
|
||||
<td align="left">92.7% (85.5-97.2%)</td>
|
||||
<td align="left">75.1% (64.4-85.4%)</td>
|
||||
<td align="left">97.7% (95.8-99%)</td>
|
||||
<td align="left">92.6% (86.3-97%)</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">75+</td>
|
||||
<td align="left">M</td>
|
||||
<td align="left">73.6% (63.6-82.4%)</td>
|
||||
<td align="left">97.9% (96.1-99.1%)</td>
|
||||
<td align="left">94.6% (89.5-97.7%)</td>
|
||||
<td align="left">74.9% (65.2-83.5%)</td>
|
||||
<td align="left">97.8% (96.2-99%)</td>
|
||||
<td align="left">94.4% (89.1-98%)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -652,7 +652,7 @@ wisca_result
|
||||
|
||||
| Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|
||||
|:---|:---|:---|
|
||||
| 70.1% (64.7-75.8%) | 93.6% (92-95%) | 89.9% (86.8-92.5%) |
|
||||
| 72.7% (67.5-77.4%) | 96% (95-97%) | 92.3% (89.7-94.6%) |
|
||||
|
||||
The output tells you: *“given the species distribution in your data,
|
||||
there is an estimated X% probability that this regimen covers the
|
||||
@@ -679,14 +679,14 @@ wisca_out
|
||||
|
||||
| age_group | gender | Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|
||||
|:---|:---|:---|:---|:---|
|
||||
| 0-24 | F | 57.1% (29.9-82.1%) | 71% (43.2-89%) | 65.8% (43.5-86.2%) |
|
||||
| 0-24 | M | 59.7% (30.7-86.3%) | 75.8% (54.2-90.9%) | 59.6% (32.6-85.2%) |
|
||||
| 25-49 | F | 67.8% (43.6-90.4%) | 93.8% (87.5-98.1%) | 87.3% (71.3-96.9%) |
|
||||
| 25-49 | M | 56.4% (25.9-85.2%) | 91.2% (82.2-97.3%) | 76.4% (51-93.6%) |
|
||||
| 50-74 | F | 68.3% (54-82.2%) | 96.9% (94.6-98.5%) | 90.2% (82.1-96.2%) |
|
||||
| 50-74 | M | 66.9% (56.3-78.5%) | 96.7% (94.1-98.5%) | 86.7% (77-94.6%) |
|
||||
| 75+ | F | 73.2% (62.7-83.4%) | 97.7% (95.9-98.9%) | 92.7% (85.5-97.2%) |
|
||||
| 75+ | M | 73.6% (63.6-82.4%) | 97.9% (96.1-99.1%) | 94.6% (89.5-97.7%) |
|
||||
| 0-24 | F | 75.5% (13.9-100%) | 81.5% (55.4-98.2%) | 84.4% (51.1-99.5%) |
|
||||
| 0-24 | M | 82.7% (44.7-99.5%) | 87.2% (68.3-98.2%) | 83.3% (48.4-99.5%) |
|
||||
| 25-49 | F | 91.9% (79.5-98.7%) | 95.4% (88.9-98.9%) | 88.1% (69.4-98.2%) |
|
||||
| 25-49 | M | 81.1% (55.2-96.6%) | 93.3% (85.2-98.3%) | 85.1% (56.4-97.6%) |
|
||||
| 50-74 | F | 75.4% (65.3-87.9%) | 97% (94.7-98.6%) | 90.1% (82.7-96.2%) |
|
||||
| 50-74 | M | 68% (55.9-78.6%) | 96.8% (93.9-98.7%) | 86.9% (77.1-94.7%) |
|
||||
| 75+ | F | 75.1% (64.4-85.4%) | 97.7% (95.8-99%) | 92.6% (86.3-97%) |
|
||||
| 75+ | M | 74.9% (65.2-83.5%) | 97.8% (96.2-99%) | 94.4% (89.1-98%) |
|
||||
|
||||
Keep in mind that more granular stratification produces more relevant
|
||||
estimates for each subgroup, but with wider credible intervals due to
|
||||
|
||||
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 751 KiB After Width: | Height: | Size: 511 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 71 KiB |
@@ -29,7 +29,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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -29,7 +29,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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -29,7 +29,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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -29,7 +29,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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -29,7 +29,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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
||||
@@ -29,7 +29,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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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">
|
||||
@@ -421,15 +421,15 @@ per clinical stratum. You can pass a column name or any expression:</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">Non-UTI</td>
|
||||
<td align="left">72.5% (69.9-75.1%)</td>
|
||||
<td align="left">86.9% (84.8-89%)</td>
|
||||
<td align="left">91.4% (89.5-93%)</td>
|
||||
<td align="left">72.5% (69.9-75.2%)</td>
|
||||
<td align="left">87% (85-88.9%)</td>
|
||||
<td align="left">91.5% (89.8-93%)</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">UTI</td>
|
||||
<td align="left">86% (82.5-89%)</td>
|
||||
<td align="left">94.8% (92.5-96.6%)</td>
|
||||
<td align="left">97.9% (96.3-99%)</td>
|
||||
<td align="left">86.8% (83.6-89.5%)</td>
|
||||
<td align="left">95.6% (93.6-97.2%)</td>
|
||||
<td align="left">98.8% (97.6-99.6%)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -457,15 +457,15 @@ all be used for the <code><a href="../reference/antibiogram.html">wisca()</a></c
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">Non-UCI</td>
|
||||
<td align="left">72.6% (69.9-75.3%)</td>
|
||||
<td align="left">87% (84.9-89.1%)</td>
|
||||
<td align="left">91.4% (89.7-92.9%)</td>
|
||||
<td align="left">72.5% (70-75.1%)</td>
|
||||
<td align="left">87.1% (84.9-89%)</td>
|
||||
<td align="left">91.5% (89.8-93%)</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">UCI</td>
|
||||
<td align="left">86% (82.7-89%)</td>
|
||||
<td align="left">94.8% (92.7-96.4%)</td>
|
||||
<td align="left">97.9% (96.5-99%)</td>
|
||||
<td align="left">86.8% (83.8-89.7%)</td>
|
||||
<td align="left">95.6% (93.7-97.2%)</td>
|
||||
<td align="left">98.8% (97.7-99.6%)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -265,8 +265,8 @@ wisca_out
|
||||
|
||||
| Syndromic Group | Amoxicillin/clavulanic acid | Amoxicillin/clavulanic acid + Ciprofloxacin | Amoxicillin/clavulanic acid + Gentamicin |
|
||||
|:---|:---|:---|:---|
|
||||
| Non-UTI | 72.5% (69.9-75.1%) | 86.9% (84.8-89%) | 91.4% (89.5-93%) |
|
||||
| UTI | 86% (82.5-89%) | 94.8% (92.5-96.6%) | 97.9% (96.3-99%) |
|
||||
| Non-UTI | 72.5% (69.9-75.2%) | 87% (85-88.9%) | 91.5% (89.8-93%) |
|
||||
| UTI | 86.8% (83.6-89.5%) | 95.6% (93.6-97.2%) | 98.8% (97.6-99.6%) |
|
||||
|
||||
The `AMR` package is available in 28 languages, which can all be used
|
||||
for the [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
|
||||
@@ -283,8 +283,8 @@ wisca(data,
|
||||
|
||||
| Grupo sindrómico | Amoxicilina/ácido clavulánico | Amoxicilina/ácido clavulánico + Ciprofloxacina | Amoxicilina/ácido clavulánico + Gentamicina |
|
||||
|:---|:---|:---|:---|
|
||||
| Non-UCI | 72.6% (69.9-75.3%) | 87% (84.9-89.1%) | 91.4% (89.7-92.9%) |
|
||||
| UCI | 86% (82.7-89%) | 94.8% (92.7-96.4%) | 97.9% (96.5-99%) |
|
||||
| Non-UCI | 72.5% (70-75.1%) | 87.1% (84.9-89%) | 91.5% (89.8-93%) |
|
||||
| UCI | 86.8% (83.8-89.7%) | 95.6% (93.7-97.2%) | 98.8% (97.7-99.6%) |
|
||||
|
||||
### Interpreting the output
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 173 KiB After Width: | Height: | Size: 264 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
@@ -29,7 +29,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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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">
|
||||
|
||||
@@ -32,7 +32,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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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">
|
||||
@@ -112,7 +112,7 @@
|
||||
</h2>
|
||||
<p>The <code>AMR</code> package is a peer-reviewed, <a href="#copyright">free and open-source</a> R package with <a href="https://en.wikipedia.org/wiki/Dependency_hell" class="external-link">zero dependencies</a> to simplify the analysis and prediction of Antimicrobial Resistance (AMR) and to work with microbial and antimicrobial data and properties, by using evidence-based methods.</p>
|
||||
<p><strong>Our aim has always been to provide a standard</strong> for clean and reproducible AMR data analysis, that can therefore empower epidemiological analyses to continuously enable surveillance and treatment evaluation in any setting. We are a team of <a href="./authors.html">many different researchers</a> from around the globe to make this a successful and durable project! The <code>AMR</code> package was already cited <a href="https://scholar.google.com/citations?view_op=view_citation&hl=en&citation_for_view=sAoHvIgAAAAJ:0EnyYjriUFMC" class="external-link">over 100 times</a> in scientific research.</p>
|
||||
<p>After installing this package, R knows <a href="./reference/microorganisms.html"><strong>~103 000 distinct microbial species</strong></a> (updated April 2026) and all <a href="./reference/antimicrobials.html"><strong>~630 antimicrobial and antiviral drugs</strong></a> by name and code (including ATC, EARS-Net, ASIARS-Net, PubChem, LOINC and SNOMED CT), and knows all about valid SIR and MIC values. The integral clinical breakpoint guidelines from CLSI 2011-2026 and EUCAST 2011-2026 are included, even with epidemiological cut-off (ECOFF) values. It supports and can read any data format, including WHONET data. This package works on Windows, macOS and Linux with all versions of R since R-3.0 (April 2013). <strong>It was designed to work in any setting, including those with very limited resources</strong>. It was created for both routine data analysis and academic research at the Faculty of Medical Sciences of the <a href="https://www.rug.nl" class="external-link">University of Groningen</a> and the <a href="https://www.umcg.nl" class="external-link">University Medical Center Groningen</a>.</p>
|
||||
<p>After installing this package, R knows <a href="./reference/microorganisms.html"><strong>~103 000 distinct microbial species</strong></a> (updated October 2026) and all <a href="./reference/antimicrobials.html"><strong>~630 antimicrobial and antiviral drugs</strong></a> by name and code (including ATC, EARS-Net, ASIARS-Net, PubChem, LOINC and SNOMED CT), and knows all about valid SIR and MIC values. The integral clinical breakpoint guidelines from CLSI 2011-2026 and EUCAST 2011-2026 are included, even with epidemiological cut-off (ECOFF) values. It supports and can read any data format, including WHONET data. This package works on Windows, macOS and Linux with all versions of R since R-3.0 (April 2013). <strong>It was designed to work in any setting, including those with very limited resources</strong>. It was created for both routine data analysis and academic research at the Faculty of Medical Sciences of the <a href="https://www.rug.nl" class="external-link">University of Groningen</a> and the <a href="https://www.umcg.nl" class="external-link">University Medical Center Groningen</a>.</p>
|
||||
<div class="section level3">
|
||||
<h3 id="used-in-over-175-countries-available-in-28-languages">Used in over 175 countries, available in 28 languages<a class="anchor" aria-label="anchor" href="#used-in-over-175-countries-available-in-28-languages"></a>
|
||||
</h3>
|
||||
@@ -187,9 +187,9 @@
|
||||
<th align="left">Piperacillin/tazobactam + Tobramycin</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td align="left">70.2% (65-75.4%)</td>
|
||||
<td align="left">93.6% (92-95.1%)</td>
|
||||
<td align="left">89.9% (87-92.5%)</td>
|
||||
<td align="left">72.5% (67.7-77.1%)</td>
|
||||
<td align="left">96% (95.1-96.9%)</td>
|
||||
<td align="left">92.1% (89.3-94.4%)</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
<p>WISCA supports stratification by any clinical variable, so you can generate syndrome-specific or ward-specific coverage estimates:</p>
|
||||
@@ -197,7 +197,13 @@
|
||||
<code class="sourceCode R"><span><span class="fu"><a href="reference/antibiogram.html">wisca</a></span><span class="op">(</span><span class="va">example_isolates</span>,</span>
|
||||
<span> antimicrobials <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"TZP"</span>, <span class="st">"TZP+TOB"</span>, <span class="st">"TZP+GEN"</span><span class="op">)</span>,</span>
|
||||
<span> syndromic_group <span class="op">=</span> <span class="st">"ward"</span>,</span>
|
||||
<span> minimum <span class="op">=</span> <span class="fl">10</span><span class="op">)</span> <span class="co"># Recommended threshold: >=30</span></span></code></pre></div>
|
||||
<span> minimum <span class="op">=</span> <span class="fl">10</span><span class="op">)</span> <span class="co"># Recommended threshold: >=30</span></span>
|
||||
<span><span class="co">#> Warning: In 6 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen accounts for more than</span></span>
|
||||
<span><span class="co">#> 5% of the pathogen incidence (up to 13.3%), since many pathogens occur only rarely. Because WISCA</span></span>
|
||||
<span><span class="co">#> gives every pathogen a prior weight of 1 (Bielicki et al., 2016), such rare pathogens can strongly</span></span>
|
||||
<span><span class="co">#> lower the estimated coverage without reflecting the clinical expectation. Consider limiting the</span></span>
|
||||
<span><span class="co">#> analysis to the most common pathogens with `top_n_microorganisms()`, or grouping rare pathogens</span></span>
|
||||
<span><span class="co">#> before running WISCA.</span></span></code></pre></div>
|
||||
<table class="table">
|
||||
<colgroup>
|
||||
<col width="14%">
|
||||
@@ -214,21 +220,21 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="left">Clinical</td>
|
||||
<td align="left">74.8% (69-80.3%)</td>
|
||||
<td align="left">93.7% (92.1-95.1%)</td>
|
||||
<td align="left">90.4% (86.8-93.3%)</td>
|
||||
<td align="left">78% (72.7-83.4%)</td>
|
||||
<td align="left">96.3% (95.1-97.3%)</td>
|
||||
<td align="left">93% (89.4-95.7%)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">ICU</td>
|
||||
<td align="left">56.7% (48.2-65.4%)</td>
|
||||
<td align="left">86.6% (83.3-89.6%)</td>
|
||||
<td align="left">83.1% (78.2-87.5%)</td>
|
||||
<td align="left">59.7% (53.5-67.9%)</td>
|
||||
<td align="left">92.2% (90-94.3%)</td>
|
||||
<td align="left">88.2% (83.4-92.2%)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Outpatient</td>
|
||||
<td align="left">57.6% (46-69%)</td>
|
||||
<td align="left">76.4% (69.8-81.7%)</td>
|
||||
<td align="left">68% (57.7-77.5%)</td>
|
||||
<td align="left">67.9% (51.9-84.7%)</td>
|
||||
<td align="left">92.8% (88.2-96.6%)</td>
|
||||
<td align="left">79.8% (64.9-92.9%)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -450,11 +456,11 @@
|
||||
<li>Calculating antimicrobial resistance (<a href="./articles/AMR.html">tutorial</a>)</li>
|
||||
<li>Determining multi-drug resistance (MDR) / multi-drug resistant organisms (MDRO) (<a href="./reference/mdro.html">tutorial</a>)</li>
|
||||
<li>Calculating (empirical) susceptibility of both mono therapy and combination therapies (<a href="./articles/AMR.html">tutorial</a>)</li>
|
||||
<li>Apply AMR functions in predictive modelling (<a href="./articles/AMR_with_tidymodels.html">tutorial</a>)</li>
|
||||
<li>Applying AMR functions in predictive modelling (<a href="./articles/AMR_with_tidymodels.html">tutorial</a>)</li>
|
||||
<li>Getting properties for any microorganism (like Gram stain, species, genus or family) (<a href="./reference/mo_property.html">manual</a>)</li>
|
||||
<li>Getting properties for any antimicrobial (like name, code of EARS-Net/ATC/LOINC/PubChem, defined daily dose or trade name) (<a href="./reference/ab_property.html">manual</a>)</li>
|
||||
<li>Plotting antimicrobial resistance (<a href="./articles/AMR.html">tutorial</a>)</li>
|
||||
<li>Applying EUCAST expert rules (<a href="./reference/eucast_rules.html">manual</a>)</li>
|
||||
<li>Applying EUCAST and CLSI interpretive rules (<a href="./reference/interpretive_rules.html">manual</a>)</li>
|
||||
<li>Getting SNOMED codes of a microorganism, or getting properties of a microorganism based on a SNOMED code (<a href="./reference/mo_property.html">manual</a>)</li>
|
||||
<li>Getting LOINC codes of an antibiotic, or getting properties of an antibiotic based on a LOINC code (<a href="./reference/ab_property.html">manual</a>)</li>
|
||||
<li>Machine reading the EUCAST and CLSI guidelines from 2011-2026 to translate MIC values and disk diffusion diameters to SIR (<a href="./articles/datasets.html">link</a>)</li>
|
||||
|
||||
@@ -50,7 +50,7 @@ in scientific research.
|
||||
|
||||
After installing this package, R knows [**~103 000 distinct microbial
|
||||
species**](https://amr-for-r.org/reference/microorganisms.md) (updated
|
||||
April 2026) and all [**~630 antimicrobial and antiviral
|
||||
October 2026) and all [**~630 antimicrobial and antiviral
|
||||
drugs**](https://amr-for-r.org/reference/antimicrobials.md) by name and
|
||||
code (including ATC, EARS-Net, ASIARS-Net, PubChem, LOINC and SNOMED
|
||||
CT), and knows all about valid SIR and MIC values. The integral clinical
|
||||
@@ -178,7 +178,7 @@ wisca(example_isolates,
|
||||
|
||||
| Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|
||||
|:---|:---|:---|
|
||||
| 70.2% (65-75.4%) | 93.6% (92-95.1%) | 89.9% (87-92.5%) |
|
||||
| 72.5% (67.7-77.1%) | 96% (95.1-96.9%) | 92.1% (89.3-94.4%) |
|
||||
|
||||
WISCA supports stratification by any clinical variable, so you can
|
||||
generate syndrome-specific or ward-specific coverage estimates:
|
||||
@@ -189,13 +189,19 @@ wisca(example_isolates,
|
||||
antimicrobials = c("TZP", "TZP+TOB", "TZP+GEN"),
|
||||
syndromic_group = "ward",
|
||||
minimum = 10) # Recommended threshold: >=30
|
||||
#> Warning: In 6 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen accounts for more than
|
||||
#> 5% of the pathogen incidence (up to 13.3%), since many pathogens occur only rarely. Because WISCA
|
||||
#> gives every pathogen a prior weight of 1 (Bielicki et al., 2016), such rare pathogens can strongly
|
||||
#> lower the estimated coverage without reflecting the clinical expectation. Consider limiting the
|
||||
#> analysis to the most common pathogens with `top_n_microorganisms()`, or grouping rare pathogens
|
||||
#> before running WISCA.
|
||||
```
|
||||
|
||||
| Syndromic Group | Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|
||||
|:---|:---|:---|:---|
|
||||
| Clinical | 74.8% (69-80.3%) | 93.7% (92.1-95.1%) | 90.4% (86.8-93.3%) |
|
||||
| ICU | 56.7% (48.2-65.4%) | 86.6% (83.3-89.6%) | 83.1% (78.2-87.5%) |
|
||||
| Outpatient | 57.6% (46-69%) | 76.4% (69.8-81.7%) | 68% (57.7-77.5%) |
|
||||
| Clinical | 78% (72.7-83.4%) | 96.3% (95.1-97.3%) | 93% (89.4-95.7%) |
|
||||
| ICU | 59.7% (53.5-67.9%) | 92.2% (90-94.3%) | 88.2% (83.4-92.2%) |
|
||||
| Outpatient | 67.9% (51.9-84.7%) | 92.8% (88.2-96.6%) | 79.8% (64.9-92.9%) |
|
||||
|
||||
**For AMR surveillance**, traditional antibiograms remain the right tool
|
||||
for tracking resistance per species over time:
|
||||
@@ -393,7 +399,7 @@ data analysis. This package can be used for:
|
||||
- Calculating (empirical) susceptibility of both mono therapy and
|
||||
combination therapies
|
||||
([tutorial](https://amr-for-r.org/articles/AMR.md))
|
||||
- Apply AMR functions in predictive modelling
|
||||
- Applying AMR functions in predictive modelling
|
||||
([tutorial](https://amr-for-r.org/articles/AMR_with_tidymodels.md))
|
||||
- Getting properties for any microorganism (like Gram stain, species,
|
||||
genus or family)
|
||||
@@ -403,8 +409,8 @@ data analysis. This package can be used for:
|
||||
([manual](https://amr-for-r.org/reference/ab_property.md))
|
||||
- Plotting antimicrobial resistance
|
||||
([tutorial](https://amr-for-r.org/articles/AMR.md))
|
||||
- Applying EUCAST expert rules
|
||||
([manual](https://amr-for-r.org/reference/eucast_rules.md))
|
||||
- Applying EUCAST and CLSI interpretive rules
|
||||
([manual](https://amr-for-r.org/reference/interpretive_rules.md))
|
||||
- Getting SNOMED codes of a microorganism, or getting properties of a
|
||||
microorganism based on a SNOMED code
|
||||
([manual](https://amr-for-r.org/reference/mo_property.md))
|
||||
|
||||
@@ -50,7 +50,7 @@ in scientific research.
|
||||
|
||||
After installing this package, R knows [**~103 000 distinct microbial
|
||||
species**](https://amr-for-r.org/reference/microorganisms.md) (updated
|
||||
April 2026) and all [**~630 antimicrobial and antiviral
|
||||
October 2026) and all [**~630 antimicrobial and antiviral
|
||||
drugs**](https://amr-for-r.org/reference/antimicrobials.md) by name and
|
||||
code (including ATC, EARS-Net, ASIARS-Net, PubChem, LOINC and SNOMED
|
||||
CT), and knows all about valid SIR and MIC values. The integral clinical
|
||||
@@ -178,7 +178,7 @@ wisca(example_isolates,
|
||||
|
||||
| Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|
||||
|:---|:---|:---|
|
||||
| 70.2% (65-75.4%) | 93.6% (92-95.1%) | 89.9% (87-92.5%) |
|
||||
| 72.5% (67.7-77.1%) | 96% (95.1-96.9%) | 92.1% (89.3-94.4%) |
|
||||
|
||||
WISCA supports stratification by any clinical variable, so you can
|
||||
generate syndrome-specific or ward-specific coverage estimates:
|
||||
@@ -189,13 +189,19 @@ wisca(example_isolates,
|
||||
antimicrobials = c("TZP", "TZP+TOB", "TZP+GEN"),
|
||||
syndromic_group = "ward",
|
||||
minimum = 10) # Recommended threshold: >=30
|
||||
#> Warning: In 6 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen accounts for more than
|
||||
#> 5% of the pathogen incidence (up to 13.3%), since many pathogens occur only rarely. Because WISCA
|
||||
#> gives every pathogen a prior weight of 1 (Bielicki et al., 2016), such rare pathogens can strongly
|
||||
#> lower the estimated coverage without reflecting the clinical expectation. Consider limiting the
|
||||
#> analysis to the most common pathogens with `top_n_microorganisms()`, or grouping rare pathogens
|
||||
#> before running WISCA.
|
||||
```
|
||||
|
||||
| Syndromic Group | Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|
||||
|:---|:---|:---|:---|
|
||||
| Clinical | 74.8% (69-80.3%) | 93.7% (92.1-95.1%) | 90.4% (86.8-93.3%) |
|
||||
| ICU | 56.7% (48.2-65.4%) | 86.6% (83.3-89.6%) | 83.1% (78.2-87.5%) |
|
||||
| Outpatient | 57.6% (46-69%) | 76.4% (69.8-81.7%) | 68% (57.7-77.5%) |
|
||||
| Clinical | 78% (72.7-83.4%) | 96.3% (95.1-97.3%) | 93% (89.4-95.7%) |
|
||||
| ICU | 59.7% (53.5-67.9%) | 92.2% (90-94.3%) | 88.2% (83.4-92.2%) |
|
||||
| Outpatient | 67.9% (51.9-84.7%) | 92.8% (88.2-96.6%) | 79.8% (64.9-92.9%) |
|
||||
|
||||
**For AMR surveillance**, traditional antibiograms remain the right tool
|
||||
for tracking resistance per species over time:
|
||||
@@ -393,7 +399,7 @@ data analysis. This package can be used for:
|
||||
- Calculating (empirical) susceptibility of both mono therapy and
|
||||
combination therapies
|
||||
([tutorial](https://amr-for-r.org/articles/AMR.md))
|
||||
- Apply AMR functions in predictive modelling
|
||||
- Applying AMR functions in predictive modelling
|
||||
([tutorial](https://amr-for-r.org/articles/AMR_with_tidymodels.md))
|
||||
- Getting properties for any microorganism (like Gram stain, species,
|
||||
genus or family)
|
||||
@@ -403,8 +409,8 @@ data analysis. This package can be used for:
|
||||
([manual](https://amr-for-r.org/reference/ab_property.md))
|
||||
- Plotting antimicrobial resistance
|
||||
([tutorial](https://amr-for-r.org/articles/AMR.md))
|
||||
- Applying EUCAST expert rules
|
||||
([manual](https://amr-for-r.org/reference/eucast_rules.md))
|
||||
- Applying EUCAST and CLSI interpretive rules
|
||||
([manual](https://amr-for-r.org/reference/interpretive_rules.md))
|
||||
- Getting SNOMED codes of a microorganism, or getting properties of a
|
||||
microorganism based on a SNOMED code
|
||||
([manual](https://amr-for-r.org/reference/mo_property.md))
|
||||
|
||||
@@ -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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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">
|
||||
@@ -49,15 +49,22 @@
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 class="pkg-version" data-toc-text="3.1.0.9009" id="amr-3109009">AMR 3.1.0.9009<a class="anchor" aria-label="anchor" href="#amr-3109009"></a></h2>
|
||||
<h2 class="pkg-version" data-toc-text="3.1.0.9010" id="amr-3109010">AMR 3.1.0.9010<a class="anchor" aria-label="anchor" href="#amr-3109010"></a></h2>
|
||||
<p>This version fixes a critical bug in WISCA that biased all coverage estimates of <code><a href="../reference/antibiogram.html">wisca()</a></code> and <code>antibiogram(..., wisca = TRUE)</code> downwards since AMR 3.0.0. Users are strongly advised to re-run their WISCA analyses.</p>
|
||||
<div class="section level4">
|
||||
<h4 id="changed-3-1-0-9009">Changed<a class="anchor" aria-label="anchor" href="#changed-3-1-0-9009"></a></h4>
|
||||
<ul><li>Microorganism coercion (<code><a href="../reference/as.mo.html">as.mo()</a></code>)
|
||||
<h4 id="changed-3-1-0-9010">Changed<a class="anchor" aria-label="anchor" href="#changed-3-1-0-9010"></a></h4>
|
||||
<ul><li>WISCA (<code><a href="../reference/antibiogram.html">wisca()</a></code> and <code>antibiogram(..., wisca = TRUE)</code>)
|
||||
<ul><li>Fixed a critical bug that systematically underestimated the coverage of every WISCA since AMR 3.0.0. Pathogens absent from a syndromic group, and pathogens without any test result for a regimen, were still included in the model with only prior information: each added a prior weight of 1 to the pathogen incidence, and untested pathogens kept their full incidence weight while counting as about 50% susceptible. The bias was largest for stratified analyses (e.g., up to 14 percentage points for meropenem in random strata of <code>example_isolates</code>). Now, only pathogens that occur in a group and have at least one test result for the regimen are included. Please re-run all WISCA analyses (<a href="https://github.com/msberends/AMR/issues/337" class="external-link">#337</a>)</li>
|
||||
<li>
|
||||
<code><a href="../reference/antibiogram.html">retrieve_wisca_parameters()</a></code> now returns only the parameters actually used in the model, and <code>n_total</code> in the <code>long_numeric</code> attribute now counts only isolates of the pathogens included for that regimen</li>
|
||||
<li>A new warning is given when the prior weight of 1 per pathogen (Bielicki <em>et al.</em>, 2016) accounts for more than 5% of the pathogen incidence, as many rare pathogens can then strongly lower the estimated coverage; consider <code><a href="../reference/top_n_microorganisms.html">top_n_microorganisms()</a></code> in that case</li>
|
||||
</ul></li>
|
||||
<li>Microorganism coercion (<code><a href="../reference/as.mo.html">as.mo()</a></code>)
|
||||
<ul><li>Fixed the misaligned arrows in the message on taxonomically renamed microorganisms in colour-supporting consoles, for old names whose author reference lacks “<em>et al.</em>” (<a href="https://github.com/msberends/AMR/issues/336" class="external-link">#336</a>)</li>
|
||||
</ul></li>
|
||||
</ul></div>
|
||||
<div class="section level4">
|
||||
<h4 id="other-3-1-0-9009">Other<a class="anchor" aria-label="anchor" href="#other-3-1-0-9009"></a></h4>
|
||||
<h4 id="other-3-1-0-9010">Other<a class="anchor" aria-label="anchor" href="#other-3-1-0-9010"></a></h4>
|
||||
<ul><li>The manual index on the website was rewritten to improve findability, with sections ordered by task and a filter field</li>
|
||||
<li>Fixed the link to the copyright section and added MycoBank as a taxonomy source in the <em>Welcome to AMR</em> vignette (<a href="https://github.com/msberends/AMR/issues/325" class="external-link">#325</a>)</li>
|
||||
</ul></div>
|
||||
|
||||
@@ -1,9 +1,38 @@
|
||||
# Changelog
|
||||
|
||||
## AMR 3.1.0.9009
|
||||
## AMR 3.1.0.9010
|
||||
|
||||
This version fixes a critical bug in WISCA that biased all coverage
|
||||
estimates of [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
|
||||
and `antibiogram(..., wisca = TRUE)` downwards since AMR 3.0.0. Users
|
||||
are strongly advised to re-run their WISCA analyses.
|
||||
|
||||
#### Changed
|
||||
|
||||
- WISCA ([`wisca()`](https://amr-for-r.org/reference/antibiogram.md) and
|
||||
`antibiogram(..., wisca = TRUE)`)
|
||||
- Fixed a critical bug that systematically underestimated the coverage
|
||||
of every WISCA since AMR 3.0.0. Pathogens absent from a syndromic
|
||||
group, and pathogens without any test result for a regimen, were
|
||||
still included in the model with only prior information: each added
|
||||
a prior weight of 1 to the pathogen incidence, and untested
|
||||
pathogens kept their full incidence weight while counting as about
|
||||
50% susceptible. The bias was largest for stratified analyses (e.g.,
|
||||
up to 14 percentage points for meropenem in random strata of
|
||||
`example_isolates`). Now, only pathogens that occur in a group and
|
||||
have at least one test result for the regimen are included. Please
|
||||
re-run all WISCA analyses
|
||||
([\#337](https://github.com/msberends/AMR/issues/337))
|
||||
- [`retrieve_wisca_parameters()`](https://amr-for-r.org/reference/antibiogram.md)
|
||||
now returns only the parameters actually used in the model, and
|
||||
`n_total` in the `long_numeric` attribute now counts only isolates
|
||||
of the pathogens included for that regimen
|
||||
- A new warning is given when the prior weight of 1 per pathogen
|
||||
(Bielicki *et al.*, 2016) accounts for more than 5% of the pathogen
|
||||
incidence, as many rare pathogens can then strongly lower the
|
||||
estimated coverage; consider
|
||||
[`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md)
|
||||
in that case
|
||||
- Microorganism coercion
|
||||
([`as.mo()`](https://amr-for-r.org/reference/as.mo.md))
|
||||
- Fixed the misaligned arrows in the message on taxonomically renamed
|
||||
|
||||
@@ -10,7 +10,7 @@ articles:
|
||||
PCA: PCA.html
|
||||
WHONET: WHONET.html
|
||||
WISCA: WISCA.html
|
||||
last_built: 2026-10-30T09:02Z
|
||||
last_built: 2026-10-30T11:41Z
|
||||
urls:
|
||||
reference: https://amr-for-r.org/reference
|
||||
article: https://amr-for-r.org/articles
|
||||
@@ -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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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="ht
|
||||
|
||||
<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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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: 439 KiB After Width: | Height: | Size: 303 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 23 KiB |
@@ -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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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,6 +377,8 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<p>WISCA (Weighted-Incidence Syndromic Combination Antibiogram) estimates the probability that an empirical antimicrobial regimen will provide adequate coverage for a given infection syndrome, before the causative pathogen has been identified.</p>
|
||||
<p>It does so by combining two quantities: the relative incidence of each pathogen within the syndrome (modelled as a Dirichlet distribution) and the susceptibility of each pathogen to the regimen (modelled as Beta distributions). These are combined via Monte Carlo simulation to produce a coverage estimate with a credible interval.</p>
|
||||
<p><strong>Prior distributions:</strong> Pathogen incidence uses a non-informative \(Dirichlet(1, 1, \ldots, 1)\) prior. Susceptibility proportions use the Jeffreys prior, \(\beta(0.5, 0.5)\), except for pathogen-drug combinations with known intrinsic resistance, which use a strongly informative \(\beta(1, 9999)\) prior that forces near-zero susceptibility regardless of observed data. Intrinsic resistance is determined using the <a href="intrinsic_resistant.html">intrinsic_resistant</a> data set, which is based on <a href="https://www.eucast.org/bacteria/important-additional-information/expert-rules/" class="external-link">'EUCAST Expected Resistant Phenotypes' v1.2</a> (2023).</p>
|
||||
<p><strong>Pathogens included in the model:</strong> For each regimen (and group), only pathogens that occur in the data and have at least one test result for the regimen are included. Pathogens without any test result for a regimen do not contribute to its coverage, nor to its <code>n_total</code> in <code>long_numeric</code>. Use <code>retrieve_wisca_parameters()</code> to get the parameters that were used.</p>
|
||||
<p><strong>Rare pathogens:</strong> Since every pathogen receives a prior weight of 1 in the Dirichlet distribution, pathogens found only once or a few times are given relatively much weight, which pulls the incidence towards a uniform distribution. Their very uncertain susceptibility can then strongly lower the estimated coverage, without reflecting the clinical expectation. A warning is therefore given when this prior weight accounts for more than 5% of the pathogen incidence in any regimen (or group). Consider limiting the analysis to the most common pathogens using <code><a href="top_n_microorganisms.html">top_n_microorganisms()</a></code>, or grouping rare pathogens before running WISCA.</p>
|
||||
<p><strong>Interpreting the output:</strong> Overlapping credible intervals between regimens indicate no significant difference in coverage; if a narrower-spectrum regimen overlaps with a broader one, the narrower-spectrum option may be preferred on stewardship grounds. Non-overlapping intervals indicate a clinically meaningful difference. For small sample sizes, consider pooling data from multiple sites to improve precision, provided pathogen distributions are sufficiently similar (Bielicki <em>et al.</em>, 2016).</p>
|
||||
<p>For the full mathematical derivation and worked examples, see the <a href="https://amr-for-r.org/articles/WISCA.html">WISCA vignette</a>.</p>
|
||||
</div>
|
||||
@@ -486,7 +488,7 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Simulations: 1000 per stratum</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> `Amoxicillin/clavulanic acid` Amoxicillin/clavulanic …¹ Amoxicillin/clavulan…²</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;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 74.3% (72.3-76.2%) 88.8% (87.2-90.4%) 90.8% (89.3-92.2%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 74.9% (72.9-76.9%) 89.7% (88.3-91.1%) 91.9% (90.6-93.1%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ abbreviated names: ¹`Amoxicillin/clavulanic acid + Ciprofloxacin`,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ²`Amoxicillin/clavulanic acid + Gentamicin`</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,</span></span>
|
||||
@@ -504,7 +506,7 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Simulations: 1000 per stratum</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> `Amoxicillin/clavulanic acid` Amoxicillin/clavulanic …¹ Amoxicillin/clavulan…²</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;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 74.3% (72.4-76.2%) 88.9% (87.3-90.4%) 90.9% (89.4-92.3%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 74.9% (72.9-76.9%) 89.7% (88.1-91.1%) 91.9% (90.5-93%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ abbreviated names: ¹`Amoxicillin/clavulanic acid + Ciprofloxacin`,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ²`Amoxicillin/clavulanic acid + Gentamicin`</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,</span></span>
|
||||
@@ -517,6 +519,13 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<span class="r-in"><span> syndromic_group <span class="op">=</span> <span class="st">"ward"</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> Using column <span style="color: #00BB00; font-weight: bold;">mo</span> as input for `col_mo`.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>In 2 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> accounts for more than 5% of the pathogen incidence (up to 5.1%), since many</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> estimated coverage without reflecting the clinical expectation. Consider</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> limiting the analysis to the most common pathogens with</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.</span>
|
||||
<span class="r-in"><span><span class="va">out</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 3 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Type: Weighted-Incidence Syndromic Combination Antibiogram (WISCA)</span></span>
|
||||
@@ -524,9 +533,9 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Simulations: 1000 per stratum</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> `Syndromic Group` `Piperacillin/tazobactam` Piperacillin/tazobactam + Gentam…¹</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;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 76% (68.1-83.3%) 99% (98.2-99.6%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 53.3% (39.6-68.5%) 98.4% (96.7-99.4%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 62.8% (41.2-84.9%) 96.2% (91.1-99.1%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 76.4% (68.6-83.9%) 99% (98.2-99.6%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 54.4% (45.4-67.2%) 98.4% (96.8-99.4%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 67% (47.6-88.5%) 96.2% (91.4-99%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ abbreviated name: ¹`Piperacillin/tazobactam + Gentamicin`</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 1 more variable: `Piperacillin/tazobactam + Tobramycin` <chr></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,</span></span>
|
||||
@@ -550,20 +559,27 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>Number of tested isolates should exceed 30 for each regimen (and group). WISCA</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> coverage estimates might be inaccurate.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>In 12 of 24 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> accounts for more than 5% of the pathogen incidence (up to 33.3%), since many</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> estimated coverage without reflecting the clinical expectation. Consider</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> limiting the analysis to the most common pathogens with</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 8 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Type: Weighted-Incidence Syndromic Combination Antibiogram (WISCA)</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Cred. interval: 95%</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Simulations: 1000 per stratum</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> age_group gender `Piperacillin/tazobactam` Piperacillin/tazobactam + Gentami…¹</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;"><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> 0-24 F 57.4% (27.9-82.7%) 71% (49-89.8%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 0-24 M 60% (32.3-84.8%) 75.9% (56.5-90.8%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> 25-49 F 66.9% (43.2-90.3%) 93.8% (87.3-98%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> 25-49 M 57.4% (25.6-87.4%) 91.2% (82.2-96.9%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> 50-74 F 68.5% (54.7-83.1%) 96.9% (94.6-98.6%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">6</span> 50-74 M 66.8% (55.9-77.4%) 96.8% (94.1-98.6%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">7</span> 75+ F 73.1% (62.2-83.2%) 97.7% (96-99%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">8</span> 75+ M 73.9% (63.8-82.7%) 97.8% (96-99%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 0-24 F 75.5% (14.7-100%) 81.6% (54.9-97.3%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 0-24 M 83.2% (45.8-99.5%) 86.6% (65.9-98.2%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> 25-49 F 92% (80.3-98.7%) 95.3% (89.1-98.8%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> 25-49 M 80.8% (57.8-96.3%) 93.3% (85-98.3%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> 50-74 F 75.4% (66.2-86.5%) 97% (94.9-98.7%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">6</span> 50-74 M 68.4% (58-78.4%) 96.8% (94.2-98.7%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">7</span> 75+ F 75% (63.9-84.4%) 97.8% (96.1-99%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">8</span> 75+ M 75% (65.1-83.6%) 97.9% (96-99.1%) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ abbreviated name: ¹`Piperacillin/tazobactam + Gentamicin`</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 1 more variable: `Piperacillin/tazobactam + Tobramycin` <chr></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,</span></span>
|
||||
@@ -740,6 +756,13 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<span class="r-in"><span> syndromic_group <span class="op">=</span> <span class="st">"ward"</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> For `ureidopenicillins()` using column <span style="color: #00BB00; font-weight: bold;">TZP</span> (piperacillin/tazobactam)</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>In 2 of 3 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> accounts for more than 5% of the pathogen incidence (up to 13.3%), since many</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> estimated coverage without reflecting the clinical expectation. Consider</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> limiting the analysis to the most common pathogens with</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># in an Rmd file, you would just need to return `ureido` in a chunk,</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># but to be explicit here:</span></span></span>
|
||||
@@ -750,9 +773,9 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |Syndromic Group |Piperacillin/tazobactam |</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |:---------------|:-----------------------|</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |Clinical |74.8% (69-80.4%) |</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |ICU |57.1% (48.6-65.5%) |</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |Outpatient |57.6% (46.5-68.8%) |</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |Clinical |77.8% (72.6-83.1%) |</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |ICU |59.8% (53.9-67.7%) |</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |Outpatient |68.4% (52.2-84.6%) |</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># Generate plots with ggplot2 or base R --------------------------------</span></span></span>
|
||||
@@ -765,6 +788,13 @@ All antibiogram types adhere to previously described approaches (see Source), an
|
||||
<span class="r-in"><span> antimicrobials <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"AMC"</span>, <span class="st">"CIP"</span>, <span class="st">"TZP"</span>, <span class="st">"TZP+TOB"</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span> syndromic_group <span class="op">=</span> <span class="st">"ward"</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>In 8 of 12 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> accounts for more than 5% of the pathogen incidence (up to 13.3%), since many</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> estimated coverage without reflecting the clinical expectation. Consider</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> limiting the analysis to the most common pathogens with</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/ns-load.html" class="external-link">requireNamespace</a></span><span class="op">(</span><span class="st">"ggplot2"</span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu">ggplot2</span><span class="fu">::</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">ab1</span><span class="op">)</span></span></span>
|
||||
|
||||
@@ -565,6 +565,25 @@ data set, which is based on ['EUCAST Expected Resistant Phenotypes'
|
||||
v1.2](https://www.eucast.org/bacteria/important-additional-information/expert-rules/)
|
||||
(2023).
|
||||
|
||||
**Pathogens included in the model:** For each regimen (and group), only
|
||||
pathogens that occur in the data and have at least one test result for
|
||||
the regimen are included. Pathogens without any test result for a
|
||||
regimen do not contribute to its coverage, nor to its `n_total` in
|
||||
`long_numeric`. Use `retrieve_wisca_parameters()` to get the parameters
|
||||
that were used.
|
||||
|
||||
**Rare pathogens:** Since every pathogen receives a prior weight of 1 in
|
||||
the Dirichlet distribution, pathogens found only once or a few times are
|
||||
given relatively much weight, which pulls the incidence towards a
|
||||
uniform distribution. Their very uncertain susceptibility can then
|
||||
strongly lower the estimated coverage, without reflecting the clinical
|
||||
expectation. A warning is therefore given when this prior weight
|
||||
accounts for more than 5% of the pathogen incidence in any regimen (or
|
||||
group). Consider limiting the analysis to the most common pathogens
|
||||
using
|
||||
[`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md),
|
||||
or grouping rare pathogens before running WISCA.
|
||||
|
||||
**Interpreting the output:** Overlapping credible intervals between
|
||||
regimens indicate no significant difference in coverage; if a
|
||||
narrower-spectrum regimen overlaps with a broader one, the
|
||||
@@ -814,7 +833,7 @@ wisca(example_isolates,
|
||||
#> # Simulations: 1000 per stratum
|
||||
#> `Amoxicillin/clavulanic acid` Amoxicillin/clavulanic …¹ Amoxicillin/clavulan…²
|
||||
#> <chr> <chr> <chr>
|
||||
#> 1 74.3% (72.3-76.2%) 88.8% (87.2-90.4%) 90.8% (89.3-92.2%)
|
||||
#> 1 74.9% (72.9-76.9%) 89.7% (88.3-91.1%) 91.9% (90.6-93.1%)
|
||||
#> # ℹ abbreviated names: ¹`Amoxicillin/clavulanic acid + Ciprofloxacin`,
|
||||
#> # ²`Amoxicillin/clavulanic acid + Gentamicin`
|
||||
#> # Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
|
||||
@@ -832,7 +851,7 @@ antibiogram(example_isolates,
|
||||
#> # Simulations: 1000 per stratum
|
||||
#> `Amoxicillin/clavulanic acid` Amoxicillin/clavulanic …¹ Amoxicillin/clavulan…²
|
||||
#> <chr> <chr> <chr>
|
||||
#> 1 74.3% (72.4-76.2%) 88.9% (87.3-90.4%) 90.9% (89.4-92.3%)
|
||||
#> 1 74.9% (72.9-76.9%) 89.7% (88.1-91.1%) 91.9% (90.5-93%)
|
||||
#> # ℹ abbreviated names: ¹`Amoxicillin/clavulanic acid + Ciprofloxacin`,
|
||||
#> # ²`Amoxicillin/clavulanic acid + Gentamicin`
|
||||
#> # Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
|
||||
@@ -845,6 +864,13 @@ out <- wisca(top_n_microorganisms(example_isolates, n = 5),
|
||||
syndromic_group = "ward"
|
||||
)
|
||||
#> ℹ Using column mo as input for `col_mo`.
|
||||
#> Warning: In 2 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
|
||||
#> accounts for more than 5% of the pathogen incidence (up to 5.1%), since many
|
||||
#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
|
||||
#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
|
||||
#> estimated coverage without reflecting the clinical expectation. Consider
|
||||
#> limiting the analysis to the most common pathogens with
|
||||
#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.
|
||||
out
|
||||
#> # A tibble: 3 × 4
|
||||
#> # Type: Weighted-Incidence Syndromic Combination Antibiogram (WISCA)
|
||||
@@ -852,9 +878,9 @@ out
|
||||
#> # Simulations: 1000 per stratum
|
||||
#> `Syndromic Group` `Piperacillin/tazobactam` Piperacillin/tazobactam + Gentam…¹
|
||||
#> <chr> <chr> <chr>
|
||||
#> 1 Clinical 76% (68.1-83.3%) 99% (98.2-99.6%)
|
||||
#> 2 ICU 53.3% (39.6-68.5%) 98.4% (96.7-99.4%)
|
||||
#> 3 Outpatient 62.8% (41.2-84.9%) 96.2% (91.1-99.1%)
|
||||
#> 1 Clinical 76.4% (68.6-83.9%) 99% (98.2-99.6%)
|
||||
#> 2 ICU 54.4% (45.4-67.2%) 98.4% (96.8-99.4%)
|
||||
#> 3 Outpatient 67% (47.6-88.5%) 96.2% (91.4-99%)
|
||||
#> # ℹ abbreviated name: ¹`Piperacillin/tazobactam + Gentamicin`
|
||||
#> # ℹ 1 more variable: `Piperacillin/tazobactam + Tobramycin` <chr>
|
||||
#> # Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
|
||||
@@ -878,20 +904,27 @@ if (requireNamespace("dplyr")) {
|
||||
}
|
||||
#> Warning: Number of tested isolates should exceed 30 for each regimen (and group). WISCA
|
||||
#> coverage estimates might be inaccurate.
|
||||
#> Warning: In 12 of 24 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
|
||||
#> accounts for more than 5% of the pathogen incidence (up to 33.3%), since many
|
||||
#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
|
||||
#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
|
||||
#> estimated coverage without reflecting the clinical expectation. Consider
|
||||
#> limiting the analysis to the most common pathogens with
|
||||
#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.
|
||||
#> # A tibble: 8 × 5
|
||||
#> # Type: Weighted-Incidence Syndromic Combination Antibiogram (WISCA)
|
||||
#> # Cred. interval: 95%
|
||||
#> # Simulations: 1000 per stratum
|
||||
#> age_group gender `Piperacillin/tazobactam` Piperacillin/tazobactam + Gentami…¹
|
||||
#> <chr> <chr> <chr> <chr>
|
||||
#> 1 0-24 F 57.4% (27.9-82.7%) 71% (49-89.8%)
|
||||
#> 2 0-24 M 60% (32.3-84.8%) 75.9% (56.5-90.8%)
|
||||
#> 3 25-49 F 66.9% (43.2-90.3%) 93.8% (87.3-98%)
|
||||
#> 4 25-49 M 57.4% (25.6-87.4%) 91.2% (82.2-96.9%)
|
||||
#> 5 50-74 F 68.5% (54.7-83.1%) 96.9% (94.6-98.6%)
|
||||
#> 6 50-74 M 66.8% (55.9-77.4%) 96.8% (94.1-98.6%)
|
||||
#> 7 75+ F 73.1% (62.2-83.2%) 97.7% (96-99%)
|
||||
#> 8 75+ M 73.9% (63.8-82.7%) 97.8% (96-99%)
|
||||
#> 1 0-24 F 75.5% (14.7-100%) 81.6% (54.9-97.3%)
|
||||
#> 2 0-24 M 83.2% (45.8-99.5%) 86.6% (65.9-98.2%)
|
||||
#> 3 25-49 F 92% (80.3-98.7%) 95.3% (89.1-98.8%)
|
||||
#> 4 25-49 M 80.8% (57.8-96.3%) 93.3% (85-98.3%)
|
||||
#> 5 50-74 F 75.4% (66.2-86.5%) 97% (94.9-98.7%)
|
||||
#> 6 50-74 M 68.4% (58-78.4%) 96.8% (94.2-98.7%)
|
||||
#> 7 75+ F 75% (63.9-84.4%) 97.8% (96.1-99%)
|
||||
#> 8 75+ M 75% (65.1-83.6%) 97.9% (96-99.1%)
|
||||
#> # ℹ abbreviated name: ¹`Piperacillin/tazobactam + Gentamicin`
|
||||
#> # ℹ 1 more variable: `Piperacillin/tazobactam + Tobramycin` <chr>
|
||||
#> # Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
|
||||
@@ -1068,6 +1101,13 @@ ureido <- wisca(example_isolates,
|
||||
syndromic_group = "ward"
|
||||
)
|
||||
#> ℹ For `ureidopenicillins()` using column TZP (piperacillin/tazobactam)
|
||||
#> Warning: In 2 of 3 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
|
||||
#> accounts for more than 5% of the pathogen incidence (up to 13.3%), since many
|
||||
#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
|
||||
#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
|
||||
#> estimated coverage without reflecting the clinical expectation. Consider
|
||||
#> limiting the analysis to the most common pathogens with
|
||||
#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.
|
||||
|
||||
# in an Rmd file, you would just need to return `ureido` in a chunk,
|
||||
# but to be explicit here:
|
||||
@@ -1078,9 +1118,9 @@ if (requireNamespace("knitr")) {
|
||||
#>
|
||||
#> |Syndromic Group |Piperacillin/tazobactam |
|
||||
#> |:---------------|:-----------------------|
|
||||
#> |Clinical |74.8% (69-80.4%) |
|
||||
#> |ICU |57.1% (48.6-65.5%) |
|
||||
#> |Outpatient |57.6% (46.5-68.8%) |
|
||||
#> |Clinical |77.8% (72.6-83.1%) |
|
||||
#> |ICU |59.8% (53.9-67.7%) |
|
||||
#> |Outpatient |68.4% (52.2-84.6%) |
|
||||
|
||||
|
||||
# Generate plots with ggplot2 or base R --------------------------------
|
||||
@@ -1093,6 +1133,13 @@ ab2 <- wisca(example_isolates,
|
||||
antimicrobials = c("AMC", "CIP", "TZP", "TZP+TOB"),
|
||||
syndromic_group = "ward"
|
||||
)
|
||||
#> Warning: In 8 of 12 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
|
||||
#> accounts for more than 5% of the pathogen incidence (up to 13.3%), since many
|
||||
#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
|
||||
#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
|
||||
#> estimated coverage without reflecting the clinical expectation. Consider
|
||||
#> limiting the analysis to the most common pathogens with
|
||||
#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.
|
||||
|
||||
if (requireNamespace("ggplot2")) {
|
||||
ggplot2::autoplot(ab1)
|
||||
|
||||
@@ -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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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">
|
||||
@@ -469,10 +469,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-30 <span style="color: #949494;">09:03: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-30 <span style="color: #949494;">09:03: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-30 <span style="color: #949494;">09:03: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-30 <span style="color: #949494;">09:03: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-30 <span style="color: #949494;">11:42:12</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-30 <span style="color: #949494;">11:42:12</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-30 <span style="color: #949494;">11:42:12</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-30 <span style="color: #949494;">11:42:12</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>
|
||||
|
||||
@@ -790,10 +790,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-30 09:03:40 1 MIC amoxicillin Escherich… human 8
|
||||
#> 2 2026-10-30 09:03:40 1 MIC cipro Escherich… human 0.256
|
||||
#> 3 2026-10-30 09:03:40 1 DISK tobra Escherich… human 16
|
||||
#> 4 2026-10-30 09:03:40 1 DISK genta Escherich… human 18
|
||||
#> 1 2026-10-30 11:42:12 1 MIC amoxicillin Escherich… human 8
|
||||
#> 2 2026-10-30 11:42:12 1 MIC cipro Escherich… human 0.256
|
||||
#> 3 2026-10-30 11:42:12 1 DISK tobra Escherich… human 16
|
||||
#> 4 2026-10-30 11:42:12 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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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">
|
||||
@@ -154,27 +154,27 @@
|
||||
<span class="r-in"><span><span class="va">df</span> <span class="op"><-</span> <span class="va">example_isolates</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/sample.html" class="external-link">sample</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/seq.html" class="external-link">seq_len</a></span><span class="op">(</span><span class="fl">2000</span><span class="op">)</span>, size <span class="op">=</span> <span class="fl">100</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">get_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, episode_days <span class="op">=</span> <span class="fl">60</span><span class="op">)</span> <span class="co"># indices</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 17 10 30 5 49 3 10 46 49 35 36 38 41 2 13 15 18 27 37 29 7 31 42 28 21</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 27 43 22 11 23 47 45 26 10 45 20 23 24 48 5 45 33 12 48 7 32 34 34 24 44</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 1 31 40 13 44 24 25 14 31 38 43 23 15 48 48 12 43 40 14 10 12 50 14 43 21</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 18 46 8 11 9 6 40 26 24 17 2 12 26 48 17 39 44 48 42 15 48 16 19 42 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 47 42 29 42 34 46 24 12 12 45 22 36 43 12 8 15 36 39 24 16 32 32 46 13 35</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 5 18 39 23 40 11 13 40 49 41 47 12 15 19 27 7 5 47 2 23 21 6 48 16 27</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 48 37 9 31 44 36 4 2 7 27 47 30 10 28 20 19 9 26 47 25 23 25 48 33 47</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 9 17 2 46 24 47 27 43 38 26 41 6 9 25 43 1 5 3 48 14 5 21 17 28 48</span>
|
||||
<span class="r-in"><span><span class="fu">is_new_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, episode_days <span class="op">=</span> <span class="fl">60</span><span class="op">)</span> <span class="co"># TRUE/FALSE</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE FALSE TRUE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] TRUE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] FALSE TRUE TRUE FALSE FALSE TRUE TRUE FALSE FALSE TRUE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] FALSE TRUE TRUE FALSE TRUE FALSE FALSE FALSE TRUE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] TRUE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE TRUE TRUE FALSE TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] TRUE FALSE TRUE TRUE FALSE TRUE FALSE TRUE TRUE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] TRUE TRUE TRUE FALSE TRUE TRUE TRUE FALSE FALSE TRUE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE FALSE TRUE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] FALSE FALSE FALSE TRUE TRUE TRUE TRUE FALSE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] FALSE TRUE TRUE TRUE TRUE FALSE FALSE TRUE FALSE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># filter on results from the third 60-day episode only, using base R</span></span></span>
|
||||
<span class="r-in"><span><span class="va">df</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/which.html" class="external-link">which</a></span><span class="op">(</span><span class="fu">get_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, <span class="fl">60</span><span class="op">)</span> <span class="op">==</span> <span class="fl">3</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 1 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> date patient age gender ward mo PEN OXA FLC AMX </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></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;"><mo></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2003-01-25 088256 73 F ICU <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>HMNS <span style="color: #080808; background-color: #FF5F5F;"> R </span> <span style="color: #949494;"> NA</span> <span style="color: #080808; background-color: #FF5F5F;"> R </span> <span style="color: #080808; background-color: #FF5F5F;"> R </span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2002-11-14 058917 76 F ICU <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>HMNS <span style="color: #080808; background-color: #FF5F5F;"> R </span> <span style="color: #949494;"> NA</span> <span style="color: #080808; background-color: #5FD7AF;"> S </span> <span style="color: #949494;"> NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>, NIT <sir>,</span></span>
|
||||
@@ -211,16 +211,16 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, condition [98]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient date condition new_episode</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;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 006606 2011-10-30 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 05B00F 2004-05-11 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 067927 2002-02-14 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 083080 2012-04-16 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 088256 2003-01-25 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 097186 2015-10-28 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 0DBB93 2009-05-08 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 0E2483 2007-11-10 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 114570 2003-04-08 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 13DF24 2011-08-14 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 008218 2009-04-27 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 058917 2002-11-14 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 074321 2015-09-20 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 078381 2014-08-17 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 080086 2007-10-26 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 0D7D34 2011-03-16 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 0DBB93 2003-10-02 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 110918 2016-05-08 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 156730 2012-04-12 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 175532 2010-04-10 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 90 more rows</span></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>
|
||||
@@ -234,19 +234,19 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/arrange.html" class="external-link">arrange</a></span><span class="op">(</span><span class="va">patient</span>, <span class="va">ward</span>, <span class="va">date</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 100 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [94]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [95]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward date patient new_index new_logical</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;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> Clinical 2011-10-30 006606 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> ICU 2004-05-11 05B00F 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> ICU 2002-02-14 067927 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Clinical 2012-04-16 083080 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> ICU 2003-01-25 088256 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> Clinical 2015-10-28 097186 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> Clinical 2009-05-08 0DBB93 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Clinical 2007-11-10 0E2483 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> ICU 2003-04-08 114570 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> Clinical 2011-08-14 13DF24 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> Clinical 2009-04-27 008218 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> ICU 2002-11-14 058917 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> ICU 2015-09-20 074321 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> ICU 2014-08-17 078381 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> Clinical 2007-10-26 080086 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> ICU 2011-03-16 0D7D34 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> ICU 2003-10-02 0DBB93 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> ICU 2016-05-08 110918 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Clinical 2012-04-12 156730 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> ICU 2010-04-10 175532 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 90 more rows</span></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>
|
||||
@@ -262,9 +262,9 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 3 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward n_patients n_episodes_365 n_episodes_60 n_episodes_30</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;"><int></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 58 12 37 45</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 33 11 23 29</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 3 2 2 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 58 13 37 42</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 29 11 21 26</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 8 5 8 8</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># grouping on patients and microorganisms leads to the same</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># results as first_isolate() when using 'episode-based':</span></span></span>
|
||||
@@ -294,18 +294,18 @@
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 100 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [96]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient mo ward flag_episode</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;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> E31163 <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>CONS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 4047F6 <span style="color: #949494;">B_</span>ESCHR<span style="color: #949494;">_</span>COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 329273 <span style="color: #949494;">B_</span>STRPT<span style="color: #949494;">_</span>GRPG ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> F35553 <span style="color: #949494;">B_</span>ENTRBC<span style="color: #949494;">_</span>CLOC ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> F50400 <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>EPDR Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 088256 <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>HMNS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> E48302 <span style="color: #949494;">B_</span>STRPT<span style="color: #949494;">_</span>PNMN ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> B77047 <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>AURS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> D20588 <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>HMNS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> ECF823 <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient mo ward flag_episode</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;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 340066 <span style="color: #949494;">B_</span>ESCHR<span style="color: #949494;">_</span>COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 904640 <span style="color: #949494;">B_</span>PROTS<span style="color: #949494;">_</span>MRBL Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> E31724 <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>CONS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 074321 <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>HMLY ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 660761 <span style="color: #949494;">B_</span>STRPT<span style="color: #949494;">_</span>DYSG Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> D39422 <span style="color: #949494;">B_</span>KLBSL<span style="color: #949494;">_</span>PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 408807 <span style="color: #949494;">B_</span>STPHY<span style="color: #949494;">_</span>CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 438596 <span style="color: #949494;">B_</span>HMPHL<span style="color: #949494;">_</span>INFL ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 964998 <span style="color: #949494;">B_</span>STRPT<span style="color: #949494;">_</span>PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> D08278 <span style="color: #949494;">B_</span>ESCHR<span style="color: #949494;">_</span>COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 90 more rows</span></span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
|
||||
@@ -178,27 +178,27 @@ x
|
||||
df <- example_isolates[sample(seq_len(2000), size = 100), ]
|
||||
|
||||
get_episode(df$date, episode_days = 60) # indices
|
||||
#> [1] 17 10 30 5 49 3 10 46 49 35 36 38 41 2 13 15 18 27 37 29 7 31 42 28 21
|
||||
#> [26] 27 43 22 11 23 47 45 26 10 45 20 23 24 48 5 45 33 12 48 7 32 34 34 24 44
|
||||
#> [51] 1 31 40 13 44 24 25 14 31 38 43 23 15 48 48 12 43 40 14 10 12 50 14 43 21
|
||||
#> [76] 18 46 8 11 9 6 40 26 24 17 2 12 26 48 17 39 44 48 42 15 48 16 19 42 4
|
||||
#> [1] 47 42 29 42 34 46 24 12 12 45 22 36 43 12 8 15 36 39 24 16 32 32 46 13 35
|
||||
#> [26] 5 18 39 23 40 11 13 40 49 41 47 12 15 19 27 7 5 47 2 23 21 6 48 16 27
|
||||
#> [51] 48 37 9 31 44 36 4 2 7 27 47 30 10 28 20 19 9 26 47 25 23 25 48 33 47
|
||||
#> [76] 9 17 2 46 24 47 27 43 38 26 41 6 9 25 43 1 5 3 48 14 5 21 17 28 48
|
||||
is_new_episode(df$date, episode_days = 60) # TRUE/FALSE
|
||||
#> [1] TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE FALSE TRUE TRUE TRUE
|
||||
#> [13] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
|
||||
#> [25] TRUE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE TRUE
|
||||
#> [37] FALSE TRUE TRUE FALSE FALSE TRUE TRUE FALSE FALSE TRUE TRUE FALSE
|
||||
#> [49] FALSE TRUE TRUE FALSE TRUE FALSE FALSE FALSE TRUE TRUE FALSE FALSE
|
||||
#> [61] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE
|
||||
#> [73] FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE TRUE FALSE FALSE FALSE
|
||||
#> [85] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE
|
||||
#> [97] TRUE TRUE FALSE TRUE
|
||||
#> [1] TRUE TRUE TRUE FALSE TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE
|
||||
#> [13] TRUE FALSE TRUE TRUE FALSE TRUE FALSE TRUE TRUE FALSE FALSE TRUE
|
||||
#> [25] TRUE TRUE TRUE FALSE TRUE TRUE TRUE FALSE FALSE TRUE TRUE FALSE
|
||||
#> [37] FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE FALSE TRUE TRUE TRUE
|
||||
#> [49] FALSE FALSE FALSE TRUE TRUE TRUE TRUE FALSE TRUE FALSE FALSE FALSE
|
||||
#> [61] FALSE TRUE TRUE TRUE TRUE FALSE FALSE TRUE FALSE TRUE FALSE FALSE
|
||||
#> [73] FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE
|
||||
#> [85] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE
|
||||
#> [97] FALSE FALSE FALSE FALSE
|
||||
|
||||
# filter on results from the third 60-day episode only, using base R
|
||||
df[which(get_episode(df$date, 60) == 3), ]
|
||||
#> # A tibble: 1 × 46
|
||||
#> date patient age gender ward mo PEN OXA FLC AMX
|
||||
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
|
||||
#> 1 2003-01-25 088256 73 F ICU B_STPHY_HMNS R NA R R
|
||||
#> 1 2002-11-14 058917 76 F ICU B_STPHY_HMNS R NA S NA
|
||||
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
|
||||
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
|
||||
#> # TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>, NIT <sir>,
|
||||
@@ -235,16 +235,16 @@ if (require("dplyr")) {
|
||||
#> # Groups: patient, condition [98]
|
||||
#> patient date condition new_episode
|
||||
#> <chr> <date> <chr> <lgl>
|
||||
#> 1 006606 2011-10-30 C TRUE
|
||||
#> 2 05B00F 2004-05-11 C TRUE
|
||||
#> 3 067927 2002-02-14 B TRUE
|
||||
#> 4 083080 2012-04-16 A TRUE
|
||||
#> 5 088256 2003-01-25 B TRUE
|
||||
#> 6 097186 2015-10-28 B TRUE
|
||||
#> 7 0DBB93 2009-05-08 B TRUE
|
||||
#> 8 0E2483 2007-11-10 A TRUE
|
||||
#> 9 114570 2003-04-08 C TRUE
|
||||
#> 10 13DF24 2011-08-14 C TRUE
|
||||
#> 1 008218 2009-04-27 A TRUE
|
||||
#> 2 058917 2002-11-14 B TRUE
|
||||
#> 3 074321 2015-09-20 B TRUE
|
||||
#> 4 078381 2014-08-17 A TRUE
|
||||
#> 5 080086 2007-10-26 C TRUE
|
||||
#> 6 0D7D34 2011-03-16 C TRUE
|
||||
#> 7 0DBB93 2003-10-02 A TRUE
|
||||
#> 8 110918 2016-05-08 A TRUE
|
||||
#> 9 156730 2012-04-12 C TRUE
|
||||
#> 10 175532 2010-04-10 C TRUE
|
||||
#> # ℹ 90 more rows
|
||||
|
||||
if (require("dplyr")) {
|
||||
@@ -258,19 +258,19 @@ if (require("dplyr")) {
|
||||
arrange(patient, ward, date)
|
||||
}
|
||||
#> # A tibble: 100 × 5
|
||||
#> # Groups: ward, patient [94]
|
||||
#> # Groups: ward, patient [95]
|
||||
#> ward date patient new_index new_logical
|
||||
#> <chr> <date> <chr> <int> <lgl>
|
||||
#> 1 Clinical 2011-10-30 006606 1 TRUE
|
||||
#> 2 ICU 2004-05-11 05B00F 1 TRUE
|
||||
#> 3 ICU 2002-02-14 067927 1 TRUE
|
||||
#> 4 Clinical 2012-04-16 083080 1 TRUE
|
||||
#> 5 ICU 2003-01-25 088256 1 TRUE
|
||||
#> 6 Clinical 2015-10-28 097186 1 TRUE
|
||||
#> 7 Clinical 2009-05-08 0DBB93 1 TRUE
|
||||
#> 8 Clinical 2007-11-10 0E2483 1 TRUE
|
||||
#> 9 ICU 2003-04-08 114570 1 TRUE
|
||||
#> 10 Clinical 2011-08-14 13DF24 1 TRUE
|
||||
#> 1 Clinical 2009-04-27 008218 1 TRUE
|
||||
#> 2 ICU 2002-11-14 058917 1 TRUE
|
||||
#> 3 ICU 2015-09-20 074321 1 TRUE
|
||||
#> 4 ICU 2014-08-17 078381 1 TRUE
|
||||
#> 5 Clinical 2007-10-26 080086 1 TRUE
|
||||
#> 6 ICU 2011-03-16 0D7D34 1 TRUE
|
||||
#> 7 ICU 2003-10-02 0DBB93 1 TRUE
|
||||
#> 8 ICU 2016-05-08 110918 1 TRUE
|
||||
#> 9 Clinical 2012-04-12 156730 1 TRUE
|
||||
#> 10 ICU 2010-04-10 175532 1 TRUE
|
||||
#> # ℹ 90 more rows
|
||||
|
||||
if (require("dplyr")) {
|
||||
@@ -286,9 +286,9 @@ if (require("dplyr")) {
|
||||
#> # A tibble: 3 × 5
|
||||
#> ward n_patients n_episodes_365 n_episodes_60 n_episodes_30
|
||||
#> <chr> <int> <int> <int> <int>
|
||||
#> 1 Clinical 58 12 37 45
|
||||
#> 2 ICU 33 11 23 29
|
||||
#> 3 Outpatient 3 2 2 3
|
||||
#> 1 Clinical 58 13 37 42
|
||||
#> 2 ICU 29 11 21 26
|
||||
#> 3 Outpatient 8 5 8 8
|
||||
|
||||
# grouping on patients and microorganisms leads to the same
|
||||
# results as first_isolate() when using 'episode-based':
|
||||
@@ -318,18 +318,18 @@ if (require("dplyr")) {
|
||||
}
|
||||
#> # A tibble: 100 × 4
|
||||
#> # Groups: patient, mo, ward [96]
|
||||
#> patient mo ward flag_episode
|
||||
#> <chr> <mo> <chr> <lgl>
|
||||
#> 1 E31163 B_STPHY_CONS ICU TRUE
|
||||
#> 2 4047F6 B_ESCHR_COLI ICU TRUE
|
||||
#> 3 329273 B_STRPT_GRPG ICU TRUE
|
||||
#> 4 F35553 B_ENTRBC_CLOC ICU TRUE
|
||||
#> 5 F50400 B_STPHY_EPDR Clinical TRUE
|
||||
#> 6 088256 B_STPHY_HMNS ICU TRUE
|
||||
#> 7 E48302 B_STRPT_PNMN ICU TRUE
|
||||
#> 8 B77047 B_STPHY_AURS ICU TRUE
|
||||
#> 9 D20588 B_STPHY_HMNS ICU TRUE
|
||||
#> 10 ECF823 B_STPHY_AURS Clinical TRUE
|
||||
#> patient mo ward flag_episode
|
||||
#> <chr> <mo> <chr> <lgl>
|
||||
#> 1 340066 B_ESCHR_COLI Clinical TRUE
|
||||
#> 2 904640 B_PROTS_MRBL Clinical TRUE
|
||||
#> 3 E31724 B_STPHY_CONS ICU TRUE
|
||||
#> 4 074321 B_STPHY_HMLY ICU TRUE
|
||||
#> 5 660761 B_STRPT_DYSG Clinical TRUE
|
||||
#> 6 D39422 B_KLBSL_PNMN Clinical TRUE
|
||||
#> 7 408807 B_STPHY_CONS Clinical TRUE
|
||||
#> 8 438596 B_HMPHL_INFL ICU TRUE
|
||||
#> 9 964998 B_STRPT_PNMN Clinical TRUE
|
||||
#> 10 D08278 B_ESCHR_COLI ICU TRUE
|
||||
#> # ℹ 90 more rows
|
||||
# }
|
||||
```
|
||||
@@ -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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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">
|
||||
@@ -91,9 +91,9 @@
|
||||
<div class="section level2">
|
||||
<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">kurtosis</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">10000</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2.920936</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2.997912</span>
|
||||
<span class="r-in"><span><span class="fu">kurtosis</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">10000</span><span class="op">)</span>, excess <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.02021475</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.03794453</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||
|
||||
@@ -45,7 +45,7 @@ kurtosis(x, na.rm = FALSE, excess = FALSE)
|
||||
|
||||
``` r
|
||||
kurtosis(rnorm(10000))
|
||||
#> [1] 2.920936
|
||||
#> [1] 2.997912
|
||||
kurtosis(rnorm(10000), excess = TRUE)
|
||||
#> [1] 0.02021475
|
||||
#> [1] -0.03794453
|
||||
```
|
||||
@@ -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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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">
|
||||
@@ -110,31 +110,31 @@
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">sir</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_sir</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">sir</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <span style="color: #0000BB;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R S I R R I S R I R</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] I I S I R I S S S R</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">sir</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.9486833 -0.9486833 -0.9486833 0.9486833 0.9486833 -0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.9486833 0.9486833 -0.9486833 0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.4743416 -0.4743416 -0.4743416 -0.4743416 1.8973666 -0.4743416</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.4743416 -0.4743416 -0.4743416 1.8973666</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<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.0002 0.032 0.002 8 <=0.0001 0.001 0.5 <=0.0001</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [9] 0.002 0.002 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] <=0.0001 64 0.001 64 0.0002 <=0.0001 0.008 0.064 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [9] 0.0002 0.125 </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.8220689 0.5401854 -0.2040199 2.0222300 -1.0081203 -0.3900712</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.2780248 -1.0081203 -0.2040199 -0.2040199</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.9348351 1.6473085 -0.4901118 1.6473085 -0.8009600 -0.9348351</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.0884866 0.3131386 -0.8009600 0.4424330</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.8220689 0.5401854 -0.2040199 2.0222300 -1.0081203 -0.3900712</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.2780248 -1.0081203 -0.2040199 -0.2040199</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.9348351 1.6473085 -0.4901118 1.6473085 -0.8009600 -0.9348351</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.0884866 0.3131386 -0.8009600 0.4424330</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>
|
||||
<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 26 48 42 31 50 13 43 50 35</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 43 46 40 43 47 47 50 20 46 31</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">disk</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.8341912 -1.0285658 0.7532018 0.2672651 -0.6236187 0.9151806</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -2.0814285 0.3482546 0.9151806 -0.2996609</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.1859655 0.5141399 -0.1422089 0.1859655 0.6235314 0.6235314</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.9517058 -2.3300383 0.5141399 -1.1267321</span>
|
||||
<span class="r-in"><span></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/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span></span></span>
|
||||
<span class="r-in"><span> id <span class="op">=</span> <span class="va">LETTERS</span><span class="op">[</span><span class="fl">1</span><span class="op">:</span><span class="fl">10</span><span class="op">]</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 S 24 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B I 27 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C S 18 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D S 30 4 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 23 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F I 19 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G R 23 4 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 28 4 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I R 28 4 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J I 26 4 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A I 31 16 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B S 30 <=8 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C S 27 <=8 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D S 32 <=8 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E R 27 <=8 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F I 32 <=8 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G R 26 <=8 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H R 30 16 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I I 19 <=8 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J S 19 <=8 <=2</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.10747691 0.36066176 -0.39889277 -0.01860893 0.02308197 -0.31449782</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.18119585 -0.18739883 0.60317059 -0.35618872</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.87190417 -0.29007013 -0.44456433 -0.18707400 0.07298484 0.33047517</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.02148677 1.33795527 -0.85654887 -0.85654887</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> 4 D S 30 4 <=1 -0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G R 23 4 <=1 -0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 28 4 <=1 -0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I R 28 4 <=1 -0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J I 26 4 <=1 -0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A S 24 4 2 0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B I 27 4 2 0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C S 18 4 2 0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 23 4 2 0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F I 19 4 2 0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B S 30 <=8 <=2 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C S 27 <=8 <=2 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D S 32 <=8 <=2 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E R 27 <=8 <=2 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G R 26 <=8 <=2 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I I 19 <=8 <=2 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J S 19 <=8 <=2 -0.5477003</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F I 32 <=8 4 0.4873980</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A I 31 16 4 1.6732521</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H R 30 16 4 1.6732521</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>
|
||||
@@ -186,16 +186,16 @@
|
||||
<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 S 18 4 2 -0.39889277 0.00000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 J I 26 4 <=1 -0.35618872 0.04270405</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 F I 19 4 2 -0.31449782 0.08439495</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 H I 28 4 <=1 -0.18739883 0.21149394</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 D S 30 4 <=1 -0.01860893 0.38028384</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 E I 23 4 2 0.02308197 0.42197474</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 A S 24 4 2 0.10747691 0.50636968</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 G R 23 4 <=1 0.18119585 0.58008862</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 B I 27 4 2 0.36066176 0.75955453</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 I R 28 4 <=1 0.60317059 1.00206336</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 C S 27 <=8 <=2 -0.44456433 0.0000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B S 30 <=8 <=2 -0.29007013 0.1544942</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 D S 32 <=8 <=2 -0.18707400 0.2574903</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 I I 19 <=8 <=2 -0.85654887 0.4119845</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 J S 19 <=8 <=2 -0.85654887 0.4119845</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 G R 26 <=8 <=2 0.02148677 0.4660511</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 E R 27 <=8 <=2 0.07298484 0.5175492</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 F I 32 <=8 4 0.33047517 0.7750395</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 A I 31 16 4 0.87190417 1.3164685</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 H R 30 16 4 1.33795527 1.7825196</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>
|
||||
|
||||
@@ -85,31 +85,31 @@ suspicious.
|
||||
sir <- random_sir(10)
|
||||
sir
|
||||
#> Class <sir>
|
||||
#> [1] R S I R R I S R I R
|
||||
#> [1] I I S I R I S S S R
|
||||
mean_amr_distance(sir)
|
||||
#> [1] 0.9486833 -0.9486833 -0.9486833 0.9486833 0.9486833 -0.9486833
|
||||
#> [7] -0.9486833 0.9486833 -0.9486833 0.9486833
|
||||
#> [1] -0.4743416 -0.4743416 -0.4743416 -0.4743416 1.8973666 -0.4743416
|
||||
#> [7] -0.4743416 -0.4743416 -0.4743416 1.8973666
|
||||
|
||||
mic <- random_mic(10)
|
||||
mic
|
||||
#> Class <mic>
|
||||
#> [1] 0.0002 0.032 0.002 8 <=0.0001 0.001 0.5 <=0.0001
|
||||
#> [9] 0.002 0.002
|
||||
#> [1] <=0.0001 64 0.001 64 0.0002 <=0.0001 0.008 0.064
|
||||
#> [9] 0.0002 0.125
|
||||
mean_amr_distance(mic)
|
||||
#> [1] -0.8220689 0.5401854 -0.2040199 2.0222300 -1.0081203 -0.3900712
|
||||
#> [7] 1.2780248 -1.0081203 -0.2040199 -0.2040199
|
||||
#> [1] -0.9348351 1.6473085 -0.4901118 1.6473085 -0.8009600 -0.9348351
|
||||
#> [7] -0.0884866 0.3131386 -0.8009600 0.4424330
|
||||
# equal to the Z-score of their log2:
|
||||
(log2(mic) - mean(log2(mic))) / sd(log2(mic))
|
||||
#> [1] -0.8220689 0.5401854 -0.2040199 2.0222300 -1.0081203 -0.3900712
|
||||
#> [7] 1.2780248 -1.0081203 -0.2040199 -0.2040199
|
||||
#> [1] -0.9348351 1.6473085 -0.4901118 1.6473085 -0.8009600 -0.9348351
|
||||
#> [7] -0.0884866 0.3131386 -0.8009600 0.4424330
|
||||
|
||||
disk <- random_disk(10)
|
||||
disk
|
||||
#> Class <disk>
|
||||
#> [1] 49 26 48 42 31 50 13 43 50 35
|
||||
#> [1] 43 46 40 43 47 47 50 20 46 31
|
||||
mean_amr_distance(disk)
|
||||
#> [1] 0.8341912 -1.0285658 0.7532018 0.2672651 -0.6236187 0.9151806
|
||||
#> [7] -2.0814285 0.3482546 0.9151806 -0.2996609
|
||||
#> [1] 0.1859655 0.5141399 -0.1422089 0.1859655 0.6235314 0.6235314
|
||||
#> [7] 0.9517058 -2.3300383 0.5141399 -1.1267321
|
||||
|
||||
y <- data.frame(
|
||||
id = LETTERS[1:10],
|
||||
@@ -120,35 +120,35 @@ y <- data.frame(
|
||||
)
|
||||
y
|
||||
#> id amox cipr gent tobr
|
||||
#> 1 A S 24 4 2
|
||||
#> 2 B I 27 4 2
|
||||
#> 3 C S 18 4 2
|
||||
#> 4 D S 30 4 <=1
|
||||
#> 5 E I 23 4 2
|
||||
#> 6 F I 19 4 2
|
||||
#> 7 G R 23 4 <=1
|
||||
#> 8 H I 28 4 <=1
|
||||
#> 9 I R 28 4 <=1
|
||||
#> 10 J I 26 4 <=1
|
||||
#> 1 A I 31 16 4
|
||||
#> 2 B S 30 <=8 <=2
|
||||
#> 3 C S 27 <=8 <=2
|
||||
#> 4 D S 32 <=8 <=2
|
||||
#> 5 E R 27 <=8 <=2
|
||||
#> 6 F I 32 <=8 4
|
||||
#> 7 G R 26 <=8 <=2
|
||||
#> 8 H R 30 16 4
|
||||
#> 9 I I 19 <=8 <=2
|
||||
#> 10 J S 19 <=8 <=2
|
||||
mean_amr_distance(y)
|
||||
#> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent", and
|
||||
#> "tobr"
|
||||
#> [1] 0.10747691 0.36066176 -0.39889277 -0.01860893 0.02308197 -0.31449782
|
||||
#> [7] 0.18119585 -0.18739883 0.60317059 -0.35618872
|
||||
#> [1] 0.87190417 -0.29007013 -0.44456433 -0.18707400 0.07298484 0.33047517
|
||||
#> [7] 0.02148677 1.33795527 -0.85654887 -0.85654887
|
||||
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
|
||||
#> 4 D S 30 4 <=1 -0.9486833
|
||||
#> 7 G R 23 4 <=1 -0.9486833
|
||||
#> 8 H I 28 4 <=1 -0.9486833
|
||||
#> 9 I R 28 4 <=1 -0.9486833
|
||||
#> 10 J I 26 4 <=1 -0.9486833
|
||||
#> 1 A S 24 4 2 0.9486833
|
||||
#> 2 B I 27 4 2 0.9486833
|
||||
#> 3 C S 18 4 2 0.9486833
|
||||
#> 5 E I 23 4 2 0.9486833
|
||||
#> 6 F I 19 4 2 0.9486833
|
||||
#> 2 B S 30 <=8 <=2 -0.5477003
|
||||
#> 3 C S 27 <=8 <=2 -0.5477003
|
||||
#> 4 D S 32 <=8 <=2 -0.5477003
|
||||
#> 5 E R 27 <=8 <=2 -0.5477003
|
||||
#> 7 G R 26 <=8 <=2 -0.5477003
|
||||
#> 9 I I 19 <=8 <=2 -0.5477003
|
||||
#> 10 J S 19 <=8 <=2 -0.5477003
|
||||
#> 6 F I 32 <=8 4 0.4873980
|
||||
#> 1 A I 31 16 4 1.6732521
|
||||
#> 8 H R 30 16 4 1.6732521
|
||||
|
||||
if (require("dplyr")) {
|
||||
y %>%
|
||||
@@ -161,16 +161,16 @@ 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 S 18 4 2 -0.39889277 0.00000000
|
||||
#> 2 J I 26 4 <=1 -0.35618872 0.04270405
|
||||
#> 3 F I 19 4 2 -0.31449782 0.08439495
|
||||
#> 4 H I 28 4 <=1 -0.18739883 0.21149394
|
||||
#> 5 D S 30 4 <=1 -0.01860893 0.38028384
|
||||
#> 6 E I 23 4 2 0.02308197 0.42197474
|
||||
#> 7 A S 24 4 2 0.10747691 0.50636968
|
||||
#> 8 G R 23 4 <=1 0.18119585 0.58008862
|
||||
#> 9 B I 27 4 2 0.36066176 0.75955453
|
||||
#> 10 I R 28 4 <=1 0.60317059 1.00206336
|
||||
#> 1 C S 27 <=8 <=2 -0.44456433 0.0000000
|
||||
#> 2 B S 30 <=8 <=2 -0.29007013 0.1544942
|
||||
#> 3 D S 32 <=8 <=2 -0.18707400 0.2574903
|
||||
#> 4 I I 19 <=8 <=2 -0.85654887 0.4119845
|
||||
#> 5 J S 19 <=8 <=2 -0.85654887 0.4119845
|
||||
#> 6 G R 26 <=8 <=2 0.02148677 0.4660511
|
||||
#> 7 E R 27 <=8 <=2 0.07298484 0.5175492
|
||||
#> 8 F I 32 <=8 4 0.33047517 0.7750395
|
||||
#> 9 A I 31 16 4 0.87190417 1.3164685
|
||||
#> 10 H R 30 16 4 1.33795527 1.7825196
|
||||
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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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.1.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9010</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: 39 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 90 KiB |