Built site for AMR: 1.8.2.9120@68abb00
2
404.html
|
@ -36,7 +36,7 @@
|
|||
|
||||
<a class="navbar-brand me-2" href="https://msberends.github.io/AMR/index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -38,7 +38,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -391,12 +391,12 @@ data set:</p>
|
|||
<col width="13%">
|
||||
<col width="13%">
|
||||
<col width="13%">
|
||||
<col width="26%">
|
||||
<col width="28%">
|
||||
<col width="5%">
|
||||
<col width="5%">
|
||||
<col width="5%">
|
||||
<col width="5%">
|
||||
<col width="9%">
|
||||
<col width="8%">
|
||||
</colgroup>
|
||||
<thead><tr class="header">
|
||||
<th align="center">date</th>
|
||||
|
@ -411,67 +411,67 @@ data set:</p>
|
|||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">2011-02-07</td>
|
||||
<td align="center">G7</td>
|
||||
<td align="center">2015-12-16</td>
|
||||
<td align="center">B5</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">Streptococcus pneumoniae</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2017-01-08</td>
|
||||
<td align="center">J1</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">Streptococcus pneumoniae</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2013-11-05</td>
|
||||
<td align="center">N5</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">Staphylococcus aureus</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2016-04-30</td>
|
||||
<td align="center">C8</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">2010-12-18</td>
|
||||
<td align="center">E4</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2013-01-08</td>
|
||||
<td align="center">R7</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2010-01-11</td>
|
||||
<td align="center">Z6</td>
|
||||
<td align="center">2012-09-14</td>
|
||||
<td align="center">G1</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">Staphylococcus aureus</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2017-06-16</td>
|
||||
<td align="center">P4</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2017-06-05</td>
|
||||
<td align="center">C6</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">Staphylococcus aureus</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">2011-09-02</td>
|
||||
<td align="center">M4</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
|
@ -510,16 +510,16 @@ Longest: 1</p>
|
|||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">M</td>
|
||||
<td align="right">10,413</td>
|
||||
<td align="right">52.07%</td>
|
||||
<td align="right">10,413</td>
|
||||
<td align="right">52.07%</td>
|
||||
<td align="right">10,451</td>
|
||||
<td align="right">52.26%</td>
|
||||
<td align="right">10,451</td>
|
||||
<td align="right">52.26%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">F</td>
|
||||
<td align="right">9,587</td>
|
||||
<td align="right">47.94%</td>
|
||||
<td align="right">9,549</td>
|
||||
<td align="right">47.75%</td>
|
||||
<td align="right">20,000</td>
|
||||
<td align="right">100.00%</td>
|
||||
</tr>
|
||||
|
@ -632,9 +632,9 @@ takes into account the antimicrobial susceptibility test results using
|
|||
<span><span class="co"># Basing inclusion on all antimicrobial results, using a points threshold of</span></span>
|
||||
<span><span class="co"># 2</span></span>
|
||||
<span><span class="co"># Including isolates from ICU.</span></span>
|
||||
<span><span class="co"># => Found 12,241 'phenotype-based' first isolates (61.2% of total where a</span></span>
|
||||
<span><span class="co"># => Found 12,299 'phenotype-based' first isolates (61.5% of total where a</span></span>
|
||||
<span><span class="co"># microbial ID was available)</span></span></code></pre></div>
|
||||
<p>So only 61.2% is suitable for resistance analysis! We can now filter
|
||||
<p>So only 61.5% is suitable for resistance analysis! We can now filter
|
||||
on it with the <code><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter()</a></code> function, also from the
|
||||
<code>dplyr</code> package:</p>
|
||||
<div class="sourceCode" id="cb15"><pre class="downlit sourceCode r">
|
||||
|
@ -644,11 +644,11 @@ on it with the <code><a href="https://dplyr.tidyverse.org/reference/filter.html"
|
|||
<div class="sourceCode" id="cb16"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="va">data_1st</span> <span class="op"><-</span> <span class="va">data</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span>
|
||||
<span> <span class="fu"><a href="../reference/first_isolate.html">filter_first_isolate</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
|
||||
<p>So we end up with 12 241 isolates for analysis. Now our data looks
|
||||
<p>So we end up with 12 299 isolates for analysis. Now our data looks
|
||||
like:</p>
|
||||
<div class="sourceCode" id="cb17"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/utils/head.html" class="external-link">head</a></span><span class="op">(</span><span class="va">data_1st</span><span class="op">)</span></span></code></pre></div>
|
||||
<table class="table">
|
||||
<table style="width:100%;" class="table">
|
||||
<colgroup>
|
||||
<col width="2%">
|
||||
<col width="9%">
|
||||
|
@ -662,7 +662,7 @@ like:</p>
|
|||
<col width="6%">
|
||||
<col width="11%">
|
||||
<col width="12%">
|
||||
<col width="7%">
|
||||
<col width="9%">
|
||||
<col width="5%">
|
||||
</colgroup>
|
||||
<thead><tr class="header">
|
||||
|
@ -684,77 +684,77 @@ like:</p>
|
|||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="center">2011-02-07</td>
|
||||
<td align="center">G7</td>
|
||||
<td align="center">2015-12-16</td>
|
||||
<td align="center">B5</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="center">2016-04-30</td>
|
||||
<td align="center">C8</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">2017-01-08</td>
|
||||
<td align="center">J1</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="center">2013-01-08</td>
|
||||
<td align="center">R7</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">2013-11-05</td>
|
||||
<td align="center">N5</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="center">2010-01-11</td>
|
||||
<td align="center">Z6</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Staphylococcus</td>
|
||||
<td align="center">aureus</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">5</td>
|
||||
<td align="center">2012-09-14</td>
|
||||
<td align="center">G1</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">6</td>
|
||||
<td align="center">2017-06-05</td>
|
||||
<td align="center">C6</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="left">7</td>
|
||||
<td align="center">2016-07-29</td>
|
||||
<td align="center">A6</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
|
@ -763,19 +763,19 @@ like:</p>
|
|||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">7</td>
|
||||
<td align="center">2015-07-18</td>
|
||||
<td align="center">F7</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="left">8</td>
|
||||
<td align="center">2010-08-11</td>
|
||||
<td align="center">J10</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">B_KLBSL_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">Klebsiella</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -811,8 +811,8 @@ readable:</p>
|
|||
<code class="sourceCode R"><span><span class="va">data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span> <span class="fu"><a href="https://msberends.github.io/cleaner/reference/freq.html" class="external-link">freq</a></span><span class="op">(</span><span class="va">genus</span>, <span class="va">species</span><span class="op">)</span></span></code></pre></div>
|
||||
<p><strong>Frequency table</strong></p>
|
||||
<p>Class: character<br>
|
||||
Length: 12,241<br>
|
||||
Available: 12,241 (100%, NA: 0 = 0%)<br>
|
||||
Length: 12,299<br>
|
||||
Available: 12,299 (100%, NA: 0 = 0%)<br>
|
||||
Unique: 4</p>
|
||||
<p>Shortest: 16<br>
|
||||
Longest: 24</p>
|
||||
|
@ -837,33 +837,33 @@ Longest: 24</p>
|
|||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">Escherichia coli</td>
|
||||
<td align="right">5,831</td>
|
||||
<td align="right">47.63%</td>
|
||||
<td align="right">5,831</td>
|
||||
<td align="right">47.63%</td>
|
||||
<td align="right">5,862</td>
|
||||
<td align="right">47.66%</td>
|
||||
<td align="right">5,862</td>
|
||||
<td align="right">47.66%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">Staphylococcus aureus</td>
|
||||
<td align="right">3,241</td>
|
||||
<td align="right">26.48%</td>
|
||||
<td align="right">9,072</td>
|
||||
<td align="right">74.11%</td>
|
||||
<td align="right">3,231</td>
|
||||
<td align="right">26.27%</td>
|
||||
<td align="right">9,093</td>
|
||||
<td align="right">73.93%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="left">Streptococcus pneumoniae</td>
|
||||
<td align="right">1,857</td>
|
||||
<td align="right">15.17%</td>
|
||||
<td align="right">10,929</td>
|
||||
<td align="right">89.28%</td>
|
||||
<td align="right">1,864</td>
|
||||
<td align="right">15.16%</td>
|
||||
<td align="right">10,957</td>
|
||||
<td align="right">89.09%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="left">Klebsiella pneumoniae</td>
|
||||
<td align="right">1,312</td>
|
||||
<td align="right">10.72%</td>
|
||||
<td align="right">12,241</td>
|
||||
<td align="right">1,342</td>
|
||||
<td align="right">10.91%</td>
|
||||
<td align="right">12,299</td>
|
||||
<td align="right">100.00%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -884,15 +884,15 @@ antibiotic class they are in:</p>
|
|||
<col width="9%">
|
||||
<col width="9%">
|
||||
<col width="9%">
|
||||
<col width="11%">
|
||||
<col width="4%">
|
||||
<col width="4%">
|
||||
<col width="4%">
|
||||
<col width="4%">
|
||||
<col width="10%">
|
||||
<col width="3%">
|
||||
<col width="3%">
|
||||
<col width="3%">
|
||||
<col width="3%">
|
||||
<col width="6%">
|
||||
<col width="11%">
|
||||
<col width="12%">
|
||||
<col width="12%">
|
||||
<col width="7%">
|
||||
<col width="9%">
|
||||
<col width="5%">
|
||||
</colgroup>
|
||||
<thead><tr class="header">
|
||||
|
@ -912,93 +912,93 @@ antibiotic class they are in:</p>
|
|||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">2011-02-07</td>
|
||||
<td align="center">G7</td>
|
||||
<td align="center">2015-12-16</td>
|
||||
<td align="center">B5</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2017-01-08</td>
|
||||
<td align="center">J1</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2013-11-05</td>
|
||||
<td align="center">N5</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2010-01-11</td>
|
||||
<td align="center">Z6</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Staphylococcus</td>
|
||||
<td align="center">aureus</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2015-07-18</td>
|
||||
<td align="center">F7</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<tr class="even">
|
||||
<td align="center">2012-09-14</td>
|
||||
<td align="center">G1</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2017-10-11</td>
|
||||
<td align="center">X3</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">I</td>
|
||||
<tr class="odd">
|
||||
<td align="center">2010-08-11</td>
|
||||
<td align="center">J10</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">B_KLBSL_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Klebsiella</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2013-06-29</td>
|
||||
<td align="center">S10</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2015-05-07</td>
|
||||
<td align="center">J3</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2013-12-05</td>
|
||||
<td align="center">D10</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -1025,46 +1025,46 @@ different bug/drug combinations, you can use the
|
|||
<td align="left">2</td>
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">AMC</td>
|
||||
<td align="center">2728</td>
|
||||
<td align="center">1160</td>
|
||||
<td align="center">1943</td>
|
||||
<td align="center">5831</td>
|
||||
<td align="center">2700</td>
|
||||
<td align="center">1233</td>
|
||||
<td align="center">1929</td>
|
||||
<td align="center">5862</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">1</td>
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">AMX</td>
|
||||
<td align="center">1490</td>
|
||||
<td align="center">1233</td>
|
||||
<td align="center">3108</td>
|
||||
<td align="center">5831</td>
|
||||
<td align="center">1457</td>
|
||||
<td align="center">1262</td>
|
||||
<td align="center">3143</td>
|
||||
<td align="center">5862</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">CIP</td>
|
||||
<td align="center">2007</td>
|
||||
<td align="center">1763</td>
|
||||
<td align="center">2061</td>
|
||||
<td align="center">5831</td>
|
||||
<td align="center">1973</td>
|
||||
<td align="center">1841</td>
|
||||
<td align="center">2048</td>
|
||||
<td align="center">5862</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">1949</td>
|
||||
<td align="center">1853</td>
|
||||
<td align="center">2029</td>
|
||||
<td align="center">5831</td>
|
||||
<td align="center">2004</td>
|
||||
<td align="center">1842</td>
|
||||
<td align="center">2016</td>
|
||||
<td align="center">5862</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">6</td>
|
||||
<td align="center">K. pneumoniae</td>
|
||||
<td align="center">AMC</td>
|
||||
<td align="center">584</td>
|
||||
<td align="center">249</td>
|
||||
<td align="center">479</td>
|
||||
<td align="center">1312</td>
|
||||
<td align="center">605</td>
|
||||
<td align="center">264</td>
|
||||
<td align="center">473</td>
|
||||
<td align="center">1342</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">5</td>
|
||||
|
@ -1072,8 +1072,8 @@ different bug/drug combinations, you can use the
|
|||
<td align="center">AMX</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">1312</td>
|
||||
<td align="center">1312</td>
|
||||
<td align="center">1342</td>
|
||||
<td align="center">1342</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -1095,34 +1095,34 @@ different bug/drug combinations, you can use the
|
|||
<tr class="odd">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">1949</td>
|
||||
<td align="center">1853</td>
|
||||
<td align="center">2029</td>
|
||||
<td align="center">5831</td>
|
||||
<td align="center">2004</td>
|
||||
<td align="center">1842</td>
|
||||
<td align="center">2016</td>
|
||||
<td align="center">5862</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">K. pneumoniae</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">452</td>
|
||||
<td align="center">426</td>
|
||||
<td align="center">434</td>
|
||||
<td align="center">1312</td>
|
||||
<td align="center">449</td>
|
||||
<td align="center">429</td>
|
||||
<td align="center">464</td>
|
||||
<td align="center">1342</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">S. aureus</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">1098</td>
|
||||
<td align="center">1008</td>
|
||||
<td align="center">1135</td>
|
||||
<td align="center">3241</td>
|
||||
<td align="center">1116</td>
|
||||
<td align="center">1009</td>
|
||||
<td align="center">1106</td>
|
||||
<td align="center">3231</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">S. pneumoniae</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">1857</td>
|
||||
<td align="center">1857</td>
|
||||
<td align="center">1864</td>
|
||||
<td align="center">1864</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -1154,7 +1154,7 @@ I (<code><a href="../reference/proportion.html">proportion_SI()</a></code>, equa
|
|||
own:</p>
|
||||
<div class="sourceCode" id="cb25"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="va">data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span> <span class="fu"><a href="../reference/proportion.html">resistance</a></span><span class="op">(</span><span class="va">AMX</span><span class="op">)</span></span>
|
||||
<span><span class="co"># [1] 0.5836941</span></span></code></pre></div>
|
||||
<span><span class="co"># [1] 0.5870396</span></span></code></pre></div>
|
||||
<p>Or can be used in conjunction with <code><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">group_by()</a></code> and
|
||||
<code><a href="https://dplyr.tidyverse.org/reference/summarise.html" class="external-link">summarise()</a></code>, both from the <code>dplyr</code> package:</p>
|
||||
<div class="sourceCode" id="cb26"><pre class="downlit sourceCode r">
|
||||
|
@ -1169,19 +1169,19 @@ own:</p>
|
|||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">0.5864297</td>
|
||||
<td align="center">0.5791485</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">0.5778776</td>
|
||||
<td align="center">0.5819352</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">0.5783004</td>
|
||||
<td align="center">0.6098081</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">0.5938144</td>
|
||||
<td align="center">0.5905316</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -1206,23 +1206,23 @@ all isolates available for every group (i.e. values S, I or R):</p>
|
|||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">0.5864297</td>
|
||||
<td align="center">3714</td>
|
||||
<td align="center">0.5791485</td>
|
||||
<td align="center">3664</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">0.5778776</td>
|
||||
<td align="center">4231</td>
|
||||
<td align="center">0.5819352</td>
|
||||
<td align="center">4351</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">0.5783004</td>
|
||||
<td align="center">1871</td>
|
||||
<td align="center">0.6098081</td>
|
||||
<td align="center">1876</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">0.5938144</td>
|
||||
<td align="center">2425</td>
|
||||
<td align="center">0.5905316</td>
|
||||
<td align="center">2408</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -1247,27 +1247,27 @@ therapies very easily:</p>
|
|||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">0.6667810</td>
|
||||
<td align="center">0.6520322</td>
|
||||
<td align="center">0.8814955</td>
|
||||
<td align="center">0.6709314</td>
|
||||
<td align="center">0.6560901</td>
|
||||
<td align="center">0.8901399</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Klebsiella</td>
|
||||
<td align="center">0.6349085</td>
|
||||
<td align="center">0.6692073</td>
|
||||
<td align="center">0.8833841</td>
|
||||
<td align="center">0.6475410</td>
|
||||
<td align="center">0.6542474</td>
|
||||
<td align="center">0.8792846</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">Staphylococcus</td>
|
||||
<td align="center">0.6599815</td>
|
||||
<td align="center">0.6497994</td>
|
||||
<td align="center">0.8707189</td>
|
||||
<td align="center">0.6601671</td>
|
||||
<td align="center">0.6576911</td>
|
||||
<td align="center">0.8895079</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">0.4787291</td>
|
||||
<td align="center">0.4812232</td>
|
||||
<td align="center">0.0000000</td>
|
||||
<td align="center">0.4787291</td>
|
||||
<td align="center">0.4812232</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -1295,23 +1295,23 @@ classes, use a antibiotic class selector such as
|
|||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">Hospital A</td>
|
||||
<td align="right">58.6%</td>
|
||||
<td align="right">36.7%</td>
|
||||
<td align="right">57.9%</td>
|
||||
<td align="right">35.8%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Hospital B</td>
|
||||
<td align="right">57.8%</td>
|
||||
<td align="right">36.4%</td>
|
||||
<td align="right">58.2%</td>
|
||||
<td align="right">36.2%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Hospital C</td>
|
||||
<td align="right">57.8%</td>
|
||||
<td align="right">37.7%</td>
|
||||
<td align="right">61.0%</td>
|
||||
<td align="right">36.7%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Hospital D</td>
|
||||
<td align="right">59.4%</td>
|
||||
<td align="right">36.5%</td>
|
||||
<td align="right">59.1%</td>
|
||||
<td align="right">36.9%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -1427,18 +1427,18 @@ classes) <code><mic></code> and <code><disk></code>:</p>
|
|||
<code class="sourceCode R"><span><span class="va">mic_values</span> <span class="op"><-</span> <span class="fu"><a href="../reference/random.html">random_mic</a></span><span class="op">(</span>size <span class="op">=</span> <span class="fl">100</span><span class="op">)</span></span>
|
||||
<span><span class="va">mic_values</span></span>
|
||||
<span><span class="co"># Class 'mic'</span></span>
|
||||
<span><span class="co"># [1] 0.01 >=256 <=0.001 8 0.005 0.005 0.01 1 4 </span></span>
|
||||
<span><span class="co"># [10] >=256 0.0625 4 16 0.01 32 0.01 >=256 32 </span></span>
|
||||
<span><span class="co"># [19] 4 0.0625 0.005 64 128 8 <=0.001 0.25 0.005 </span></span>
|
||||
<span><span class="co"># [28] 0.0625 <=0.001 0.125 0.0625 0.025 0.01 2 32 4 </span></span>
|
||||
<span><span class="co"># [37] 4 128 0.002 <=0.001 0.025 >=256 0.125 0.5 2 </span></span>
|
||||
<span><span class="co"># [46] 0.025 0.005 >=256 16 0.5 2 0.25 0.25 0.25 </span></span>
|
||||
<span><span class="co"># [55] 64 8 <=0.001 8 4 0.0625 <=0.001 0.0625 1 </span></span>
|
||||
<span><span class="co"># [64] 0.0625 0.01 1 0.002 16 <=0.001 0.125 0.005 0.0625 </span></span>
|
||||
<span><span class="co"># [73] 16 0.125 128 0.005 16 64 8 16 <=0.001</span></span>
|
||||
<span><span class="co"># [82] 16 4 2 0.002 64 8 64 0.5 0.025 </span></span>
|
||||
<span><span class="co"># [91] 1 0.025 1 32 0.002 16 0.125 0.125 16 </span></span>
|
||||
<span><span class="co"># [100] 0.01</span></span></code></pre></div>
|
||||
<span><span class="co"># [1] 2 0.005 1 8 8 16 >=256 0.025 8 </span></span>
|
||||
<span><span class="co"># [10] 8 <=0.001 0.01 0.25 0.025 0.125 0.125 2 2 </span></span>
|
||||
<span><span class="co"># [19] 32 1 0.25 16 64 0.01 4 0.002 8 </span></span>
|
||||
<span><span class="co"># [28] 16 0.0625 1 <=0.001 0.0625 0.01 2 1 0.5 </span></span>
|
||||
<span><span class="co"># [37] 2 1 0.5 0.5 0.01 128 1 <=0.001 1 </span></span>
|
||||
<span><span class="co"># [46] 4 <=0.001 0.002 0.125 128 0.01 16 64 32 </span></span>
|
||||
<span><span class="co"># [55] >=256 0.0625 0.25 0.125 128 0.01 <=0.001 0.002 0.0625 </span></span>
|
||||
<span><span class="co"># [64] 64 0.25 1 0.025 4 0.5 0.01 0.002 8 </span></span>
|
||||
<span><span class="co"># [73] 16 0.5 <=0.001 128 2 0.002 0.025 8 0.01 </span></span>
|
||||
<span><span class="co"># [82] 64 32 0.002 <=0.001 0.5 0.5 0.005 >=256 0.025 </span></span>
|
||||
<span><span class="co"># [91] 0.0625 128 32 0.01 16 64 0.125 0.5 64 </span></span>
|
||||
<span><span class="co"># [100] 0.25</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb36"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="co"># base R:</span></span>
|
||||
<span><span class="fu"><a href="../reference/plot.html">plot</a></span><span class="op">(</span><span class="va">mic_values</span><span class="op">)</span></span></code></pre></div>
|
||||
|
@ -1472,10 +1472,10 @@ plotting:</p>
|
|||
<code class="sourceCode R"><span><span class="va">disk_values</span> <span class="op"><-</span> <span class="fu"><a href="../reference/random.html">random_disk</a></span><span class="op">(</span>size <span class="op">=</span> <span class="fl">100</span>, mo <span class="op">=</span> <span class="st">"E. coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span>
|
||||
<span><span class="va">disk_values</span></span>
|
||||
<span><span class="co"># Class 'disk'</span></span>
|
||||
<span><span class="co"># [1] 20 19 27 26 31 31 29 20 28 29 17 25 20 20 26 30 21 26 28 26 29 28 25 17 19</span></span>
|
||||
<span><span class="co"># [26] 18 25 25 24 21 21 17 25 17 31 18 21 18 21 30 18 29 20 27 29 29 19 25 21 22</span></span>
|
||||
<span><span class="co"># [51] 30 25 30 21 22 23 25 22 27 19 17 30 28 25 17 19 21 26 18 22 31 27 21 26 20</span></span>
|
||||
<span><span class="co"># [76] 21 30 24 26 17 31 23 23 23 19 25 31 17 21 23 24 22 29 23 24 21 22 27 27 23</span></span></code></pre></div>
|
||||
<span><span class="co"># [1] 22 30 24 28 31 26 27 25 31 17 20 23 22 30 28 24 20 20 18 31 21 24 19 25 21</span></span>
|
||||
<span><span class="co"># [26] 19 22 26 22 20 31 26 31 20 17 23 25 31 23 26 24 17 24 21 25 18 26 27 17 17</span></span>
|
||||
<span><span class="co"># [51] 26 20 20 18 26 24 29 22 28 29 30 21 28 31 30 17 28 17 19 27 24 21 18 21 18</span></span>
|
||||
<span><span class="co"># [76] 24 30 18 18 24 28 27 17 31 28 29 31 18 20 30 29 31 28 31 19 22 28 28 26 30</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb42"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="co"># base R:</span></span>
|
||||
<span><span class="fu"><a href="../reference/plot.html">plot</a></span><span class="op">(</span><span class="va">disk_values</span>, mo <span class="op">=</span> <span class="st">"E. coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span></code></pre></div>
|
||||
|
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
|
@ -38,7 +38,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -38,7 +38,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -385,19 +385,19 @@ names or codes, this would have worked exactly the same way:</p>
|
|||
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/utils/head.html" class="external-link">head</a></span><span class="op">(</span><span class="va">my_TB_data</span><span class="op">)</span></span>
|
||||
<span><span class="co"># rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin</span></span>
|
||||
<span><span class="co"># 1 S I S R I S</span></span>
|
||||
<span><span class="co"># 2 S R I I R I</span></span>
|
||||
<span><span class="co"># 3 S S S S R R</span></span>
|
||||
<span><span class="co"># 4 S R S I I R</span></span>
|
||||
<span><span class="co"># 5 S I R S R I</span></span>
|
||||
<span><span class="co"># 6 S R I R R S</span></span>
|
||||
<span><span class="co"># 1 I R S S R I</span></span>
|
||||
<span><span class="co"># 2 S S I S S I</span></span>
|
||||
<span><span class="co"># 3 R S S S I R</span></span>
|
||||
<span><span class="co"># 4 S I R I S R</span></span>
|
||||
<span><span class="co"># 5 R I S S S S</span></span>
|
||||
<span><span class="co"># 6 R R R S R I</span></span>
|
||||
<span><span class="co"># kanamycin</span></span>
|
||||
<span><span class="co"># 1 I</span></span>
|
||||
<span><span class="co"># 1 R</span></span>
|
||||
<span><span class="co"># 2 S</span></span>
|
||||
<span><span class="co"># 3 S</span></span>
|
||||
<span><span class="co"># 4 R</span></span>
|
||||
<span><span class="co"># 5 I</span></span>
|
||||
<span><span class="co"># 6 S</span></span></code></pre></div>
|
||||
<span><span class="co"># 4 I</span></span>
|
||||
<span><span class="co"># 5 S</span></span>
|
||||
<span><span class="co"># 6 I</span></span></code></pre></div>
|
||||
<p>We can now add the interpretation of MDR-TB to our data set. You can
|
||||
use:</p>
|
||||
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r">
|
||||
|
@ -438,40 +438,40 @@ Unique: 5</p>
|
|||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">Mono-resistant</td>
|
||||
<td align="right">3144</td>
|
||||
<td align="right">62.88%</td>
|
||||
<td align="right">3144</td>
|
||||
<td align="right">62.88%</td>
|
||||
<td align="right">3179</td>
|
||||
<td align="right">63.58%</td>
|
||||
<td align="right">3179</td>
|
||||
<td align="right">63.58%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">Negative</td>
|
||||
<td align="right">1032</td>
|
||||
<td align="right">20.64%</td>
|
||||
<td align="right">4176</td>
|
||||
<td align="right">83.52%</td>
|
||||
<td align="right">1012</td>
|
||||
<td align="right">20.24%</td>
|
||||
<td align="right">4191</td>
|
||||
<td align="right">83.82%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="left">Multi-drug-resistant</td>
|
||||
<td align="right">465</td>
|
||||
<td align="right">9.30%</td>
|
||||
<td align="right">4641</td>
|
||||
<td align="right">92.82%</td>
|
||||
<td align="right">455</td>
|
||||
<td align="right">9.10%</td>
|
||||
<td align="right">4646</td>
|
||||
<td align="right">92.92%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="left">Poly-resistant</td>
|
||||
<td align="right">263</td>
|
||||
<td align="right">5.26%</td>
|
||||
<td align="right">4904</td>
|
||||
<td align="right">98.08%</td>
|
||||
<td align="right">247</td>
|
||||
<td align="right">4.94%</td>
|
||||
<td align="right">4893</td>
|
||||
<td align="right">97.86%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">5</td>
|
||||
<td align="left">Extensively drug-resistant</td>
|
||||
<td align="right">96</td>
|
||||
<td align="right">1.92%</td>
|
||||
<td align="right">107</td>
|
||||
<td align="right">2.14%</td>
|
||||
<td align="right">5000</td>
|
||||
<td align="right">100.00%</td>
|
||||
</tr>
|
||||
|
|
|
@ -38,7 +38,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -290,7 +290,7 @@ function:</p>
|
|||
<span><span class="co"># [1] "Caryophanales" "Enterobacterales" "Lactobacillales" "Pseudomonadales"</span></span>
|
||||
<span><span class="co"># Importance of components:</span></span>
|
||||
<span><span class="co"># PC1 PC2 PC3 PC4 PC5 PC6 PC7</span></span>
|
||||
<span><span class="co"># Standard deviation 2.1539 1.6807 0.6138 0.33879 0.20808 0.03140 1.232e-16</span></span>
|
||||
<span><span class="co"># Standard deviation 2.1539 1.6807 0.6138 0.33879 0.20808 0.03140 9.577e-17</span></span>
|
||||
<span><span class="co"># Proportion of Variance 0.5799 0.3531 0.0471 0.01435 0.00541 0.00012 0.000e+00</span></span>
|
||||
<span><span class="co"># Cumulative Proportion 0.5799 0.9330 0.9801 0.99446 0.99988 1.00000 1.000e+00</span></span></code></pre></div>
|
||||
<pre><code><span><span class="co"># Groups (n=4, named as 'order'):</span></span>
|
||||
|
|
|
@ -38,7 +38,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -257,7 +257,7 @@ data using a custom made website. The webdesign knowledge needed
|
|||
<li>
|
||||
<p><strong>R has a huge community.</strong></p>
|
||||
<p>Many R users just ask questions on websites like <a href="https://stackoverflow.com" class="external-link">StackOverflow.com</a>, the largest
|
||||
online community for programmers. At the time of writing, <a href="https://stackoverflow.com/questions/tagged/r?sort=votes" class="external-link">480 015
|
||||
online community for programmers. At the time of writing, <a href="https://stackoverflow.com/questions/tagged/r?sort=votes" class="external-link">480 788
|
||||
R-related questions</a> have already been asked on this platform (that
|
||||
covers questions and answers for any programming language). In my own
|
||||
experience, most questions are answered within a couple of
|
||||
|
|
|
@ -38,7 +38,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -38,7 +38,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -38,7 +38,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -38,7 +38,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -62,6 +62,7 @@ pre code {
|
|||
/* never wrap code on smaller screens */
|
||||
word-wrap: normal !important;
|
||||
white-space: pre !important;
|
||||
font-size: 0.8em !important;
|
||||
}
|
||||
.ot, .dv, .fl, .cn, .at,
|
||||
.op a {
|
||||
|
|
|
@ -42,7 +42,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -142,7 +142,7 @@
|
|||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 class="pkg-version" data-toc-text="1.8.2.9119" id="amr-1829119">AMR 1.8.2.9119<a class="anchor" aria-label="anchor" href="#amr-1829119"></a></h2>
|
||||
<h2 class="pkg-version" data-toc-text="1.8.2.9120" id="amr-1829120">AMR 1.8.2.9120<a class="anchor" aria-label="anchor" href="#amr-1829120"></a></h2>
|
||||
<p><em>(this beta version will eventually become v2.0! We’re happy to reach a new major milestone soon!)</em></p>
|
||||
<p>This is a new major release of the AMR package, with great new additions but also some breaking changes for current users. These are all listed below.</p>
|
||||
<p><strong><a href="https://en.wikipedia.org/wiki/TL;DR" class="external-link">TL;DR</a></strong></p>
|
||||
|
@ -156,31 +156,32 @@
|
|||
<li>Now available in 20 languages</li>
|
||||
<li>Many small bug fixes</li>
|
||||
</ul><div class="section level3">
|
||||
<h3 id="new-1-8-2-9119">New<a class="anchor" aria-label="anchor" href="#new-1-8-2-9119"></a></h3>
|
||||
<h3 id="new-1-8-2-9120">New<a class="anchor" aria-label="anchor" href="#new-1-8-2-9120"></a></h3>
|
||||
<div class="section level4">
|
||||
<h4 id="sir-vs-rsi-1-8-2-9119">SIR vs. RSI<a class="anchor" aria-label="anchor" href="#sir-vs-rsi-1-8-2-9119"></a></h4>
|
||||
<h4 id="sir-vs-rsi-1-8-2-9120">SIR vs. RSI<a class="anchor" aria-label="anchor" href="#sir-vs-rsi-1-8-2-9120"></a></h4>
|
||||
<p>For this milestone version, we replaced all mentions of RSI with SIR, to comply with what is actually being commonly used in the field of clinical microbiology when it comes to this tri-form regarding AMR.</p>
|
||||
<p>While existing functions such as <code><a href="../reference/AMR-deprecated.html">as.rsi()</a></code>, <code><a href="../reference/AMR-deprecated.html">rsi_df()</a></code> and <code><a href="../reference/AMR-deprecated.html">ggplot_rsi()</a></code> still work, their replacements <code><a href="../reference/as.sir.html">as.sir()</a></code>, <code><a href="../reference/proportion.html">sir_df()</a></code>, <code><a href="../reference/ggplot_sir.html">ggplot_sir()</a></code> are now the current functions for AMR data analysis. A warning will be thrown once a session to remind users about this. The data set <code>rsi_translation</code> is now called <code>clinical_breakpoints</code> to better reflect its content.</p>
|
||||
<p>The ‘RSI functions’ will be removed in a future version, but not before late 2023 / early 2024.</p>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="new-antibiogram-function-1-8-2-9119">New antibiogram function<a class="anchor" aria-label="anchor" href="#new-antibiogram-function-1-8-2-9119"></a></h4>
|
||||
<h4 id="new-antibiogram-function-1-8-2-9120">New antibiogram function<a class="anchor" aria-label="anchor" href="#new-antibiogram-function-1-8-2-9120"></a></h4>
|
||||
<p>With the new <code><a href="../reference/antibiogram.html">antibiogram()</a></code> function, users can now generate traditional, combined, syndromic, and even weighted-incidence syndromic combination antibiograms (WISCA). With this, we follow the logic in the previously described work of Klinker <em>et al.</em> (2021, DOI <a href="https://doi.org/10.1177/20499361211011373" class="external-link">10.1177/20499361211011373</a>) and Barbieri <em>et al.</em> (2021, DOI <a href="https://doi.org/10.1186/s13756-021-00939-2" class="external-link">10.1186/s13756-021-00939-2</a>).</p>
|
||||
<p>The help page for <code><a href="../reference/antibiogram.html">antibiogram()</a></code> extensively elaborates on use cases, and <code><a href="../reference/antibiogram.html">antibiogram()</a></code> also supports printing in R Markdown and Quarto, with support for 20 languages.</p>
|
||||
<p>Furthermore, different plotting methods were implemented to allow for graphical visualisations as well.</p>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="interpretation-of-mic-and-disk-diffusion-values-1-8-2-9119">Interpretation of MIC and disk diffusion values<a class="anchor" aria-label="anchor" href="#interpretation-of-mic-and-disk-diffusion-values-1-8-2-9119"></a></h4>
|
||||
<h4 id="interpretation-of-mic-and-disk-diffusion-values-1-8-2-9120">Interpretation of MIC and disk diffusion values<a class="anchor" aria-label="anchor" href="#interpretation-of-mic-and-disk-diffusion-values-1-8-2-9120"></a></h4>
|
||||
<p>The clinical breakpoints and intrinsic resistance of EUCAST 2022 and CLSI 2022 have been added for <code><a href="../reference/as.sir.html">as.sir()</a></code>. EUCAST 2022 (v12.0) is now the new default guideline for all MIC and disks diffusion interpretations, and for <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code> to apply EUCAST Expert Rules. The default guideline (EUCAST) can now be changed with the new <code>AMR_guideline</code> option, such as: <code>options(AMR_guideline = "CLSI 2020")</code>.</p>
|
||||
<p>With the new arguments <code>include_PKPD</code> (default: <code>TRUE</code>) and <code>include_screening</code> (default: <code>FALSE</code>), users can now specify whether breakpoints for screening and from the PK/PD table should be included when interpreting MICs and disks diffusion values. These options can be set globally, which can be read in <a href="https://msberends.github.io/AMR/reference/AMR-options.html">our new manual</a>.</p>
|
||||
<p>Interpretation guidelines older than 10 years were removed, the oldest now included guidelines of EUCAST and CLSI are from 2013.</p>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="supported-languages-1-8-2-9119">Supported languages<a class="anchor" aria-label="anchor" href="#supported-languages-1-8-2-9119"></a></h4>
|
||||
<h4 id="supported-languages-1-8-2-9120">Supported languages<a class="anchor" aria-label="anchor" href="#supported-languages-1-8-2-9120"></a></h4>
|
||||
<p>We added support for the following ten languages: Chinese (simplified), Czech, Finnish, Greek, Japanese, Norwegian (bokmål), Polish, Romanian, Turkish and Ukrainian. All antibiotic names are now available in these languages, and the AMR package will automatically determine a supported language based on the user’s system language.</p>
|
||||
<p>We are very grateful for the valuable input by our colleagues from other countries. The <code>AMR</code> package is now available in 20 languages in total, and according to download stats used in almost all countries in the world!</p>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="microbiological-taxonomy-1-8-2-9119">Microbiological taxonomy<a class="anchor" aria-label="anchor" href="#microbiological-taxonomy-1-8-2-9119"></a></h4>
|
||||
<h4 id="microbiological-taxonomy-1-8-2-9120">Microbiological taxonomy<a class="anchor" aria-label="anchor" href="#microbiological-taxonomy-1-8-2-9120"></a></h4>
|
||||
<p>The <code>microorganisms</code> data set no longer relies on the Catalogue of Life, but on the List of Prokaryotic names with Standing in Nomenclature (LPSN) and is supplemented with the ‘backbone taxonomy’ from the Global Biodiversity Information Facility (GBIF). The structure of this data set has changed to include separate LPSN and GBIF identifiers. Almost all previous MO codes were retained. It contains over 1,400 taxonomic names from 2022.</p>
|
||||
<p>We previously relied on our own experience to categorise species into pathogenic groups, but we were very happy to encounter the very recent work of Bartlett <em>et al.</em> (2022, DOI <a href="https://doi.org/10.1099/mic.0.001269" class="external-link">10.1099/mic.0.001269</a>) who extensively studied medical-scientific literature to categorise all bacterial species into groups. See <code><a href="../reference/mo_matching_score.html">mo_matching_score()</a></code> on how their work was incorporated into the <code>prevalence</code> column of the <code>microorganisms</code> data set. Using their results, the <code><a href="../reference/as.mo.html">as.mo()</a></code> and all <code>mo_*()</code> functions are now much better capable of converting user input to valid taxonomic records.</p>
|
||||
<p>The new function <code><a href="../reference/add_custom_microorganisms.html">add_custom_microorganisms()</a></code> allows users to add custom microorganisms to the <code>AMR</code> package.</p>
|
||||
|
@ -204,7 +205,7 @@
|
|||
<li>The <code>microorganisms.old</code> data set was removed, and all previously accepted names are now included in the <code>microorganisms</code> data set. A new column <code>status</code> contains <code>"accepted"</code> for currently accepted names and <code>"synonym"</code> for taxonomic synonyms; currently invalid names. All previously accepted names now have a microorganisms ID and - if available - an LPSN, GBIF and SNOMED CT identifier.</li>
|
||||
</ul></div>
|
||||
<div class="section level4">
|
||||
<h4 id="antibiotic-agents-and-selectors-1-8-2-9119">Antibiotic agents and selectors<a class="anchor" aria-label="anchor" href="#antibiotic-agents-and-selectors-1-8-2-9119"></a></h4>
|
||||
<h4 id="antibiotic-agents-and-selectors-1-8-2-9120">Antibiotic agents and selectors<a class="anchor" aria-label="anchor" href="#antibiotic-agents-and-selectors-1-8-2-9120"></a></h4>
|
||||
<p>The new function <code><a href="../reference/add_custom_antimicrobials.html">add_custom_antimicrobials()</a></code> allows users to add custom antimicrobial codes and names to the <code>AMR</code> package.</p>
|
||||
<p>The <code>antibiotics</code> data set was greatly updated:</p>
|
||||
<ul><li>The following 20 antibiotics have been added (also includes the <a href="https://www.whocc.no/atc_ddd_index/?code=J01RA&showdescription=no" class="external-link">new J01RA ATC group</a>): azithromycin/fluconazole/secnidazole (AFC), cefepime/amikacin (CFA), cefixime/ornidazole (CEO), ceftriaxone/beta-lactamase inhibitor (CEB), ciprofloxacin/metronidazole (CIM), ciprofloxacin/ornidazole (CIO), ciprofloxacin/tinidazole (CIT), furazidin (FUR), isoniazid/sulfamethoxazole/trimethoprim/pyridoxine (IST), lascufloxacin (LSC), levofloxacin/ornidazole (LEO), nemonoxacin (NEM), norfloxacin/metronidazole (NME), norfloxacin/tinidazole (NTI), ofloxacin/ornidazole (OOR), oteseconazole (OTE), rifampicin/ethambutol/isoniazid (REI), sarecycline (SRC), tetracycline/oleandomycin (TOL), and thioacetazone (TAT)</li>
|
||||
|
@ -216,14 +217,14 @@
|
|||
</ul><p>Also, we added support for using antibiotic selectors in scoped <code>dplyr</code> verbs (with or without using <code><a href="https://dplyr.tidyverse.org/reference/vars.html" class="external-link">vars()</a></code>), such as in: <code>... %>% summarise_at(aminoglycosides(), resistance)</code>, please see <code><a href="../reference/proportion.html">resistance()</a></code> for examples.</p>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="antiviral-agents-1-8-2-9119">Antiviral agents<a class="anchor" aria-label="anchor" href="#antiviral-agents-1-8-2-9119"></a></h4>
|
||||
<h4 id="antiviral-agents-1-8-2-9120">Antiviral agents<a class="anchor" aria-label="anchor" href="#antiviral-agents-1-8-2-9120"></a></h4>
|
||||
<p>We now added extensive support for antiviral agents! For the first time, the <code>AMR</code> package has extensive support for antiviral drugs and to work with their names, codes and other data in any way.</p>
|
||||
<ul><li>The <code>antivirals</code> data set has been extended with 18 new drugs (also from the <a href="https://www.whocc.no/atc_ddd_index/?code=J05AJ&showdescription=no" class="external-link">new J05AJ ATC group</a>) and now also contains antiviral identifiers and LOINC codes</li>
|
||||
<li>A new data type <code>av</code> (<em>antivirals</em>) has been added, which is functionally similar to <code>ab</code> for antibiotics</li>
|
||||
<li>Functions <code><a href="../reference/as.av.html">as.av()</a></code>, <code><a href="../reference/av_property.html">av_name()</a></code>, <code><a href="../reference/av_property.html">av_atc()</a></code>, <code><a href="../reference/av_property.html">av_synonyms()</a></code>, <code><a href="../reference/av_from_text.html">av_from_text()</a></code> have all been added as siblings to their <code>ab_*()</code> equivalents</li>
|
||||
</ul></div>
|
||||
<div class="section level4">
|
||||
<h4 id="other-new-functions-1-8-2-9119">Other new functions<a class="anchor" aria-label="anchor" href="#other-new-functions-1-8-2-9119"></a></h4>
|
||||
<h4 id="other-new-functions-1-8-2-9120">Other new functions<a class="anchor" aria-label="anchor" href="#other-new-functions-1-8-2-9120"></a></h4>
|
||||
<ul><li>Function <code><a href="../reference/proportion.html">sir_confidence_interval()</a></code> to add confidence intervals in AMR calculation. This is now also included in <code><a href="../reference/proportion.html">sir_df()</a></code> and <code><a href="../reference/proportion.html">proportion_df()</a></code>.</li>
|
||||
<li>Function <code><a href="../reference/mean_amr_distance.html">mean_amr_distance()</a></code> to calculate the mean AMR distance. The mean AMR distance is a normalised numeric value to compare AMR test results and can help to identify similar isolates, without comparing antibiograms by hand.</li>
|
||||
<li>Function <code><a href="../reference/as.sir.html">sir_interpretation_history()</a></code> to view the history of previous runs of <code><a href="../reference/as.sir.html">as.sir()</a></code> (previously <code><a href="../reference/AMR-deprecated.html">as.rsi()</a></code>). This returns a ‘logbook’ with the selected guideline, reference table and specific interpretation of each row in a data set on which <code><a href="../reference/as.sir.html">as.sir()</a></code> was run.</li>
|
||||
|
@ -232,7 +233,7 @@
|
|||
</ul></div>
|
||||
</div>
|
||||
<div class="section level3">
|
||||
<h3 id="changes-1-8-2-9119">Changes<a class="anchor" aria-label="anchor" href="#changes-1-8-2-9119"></a></h3>
|
||||
<h3 id="changes-1-8-2-9120">Changes<a class="anchor" aria-label="anchor" href="#changes-1-8-2-9120"></a></h3>
|
||||
<ul><li>Argument <code>combine_IR</code> has been removed from this package (affecting functions <code><a href="../reference/count.html">count_df()</a></code>, <code><a href="../reference/proportion.html">proportion_df()</a></code>, and <code><a href="../reference/proportion.html">sir_df()</a></code> and some plotting functions), since it was replaced with <code>combine_SI</code> three years ago</li>
|
||||
<li>Using <code>units</code> in <code>ab_ddd(..., units = "...")</code> had been deprecated for some time and is now not supported anymore. Use <code><a href="../reference/ab_property.html">ab_ddd_units()</a></code> instead.</li>
|
||||
<li>Support for <code>data.frame</code>-enhancing R packages, more specifically: <code><a href="https://Rdatatable.gitlab.io/data.table/reference/data.table.html" class="external-link">data.table::data.table</a></code>, <code><a href="https://sfirke.github.io/janitor/reference/tabyl.html" class="external-link">janitor::tabyl</a></code>, <code><a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble::tibble</a></code>, and <code><a href="https://tsibble.tidyverts.org/reference/tsibble.html" class="external-link">tsibble::tsibble</a></code>. AMR package functions that have a data set as output (such as <code><a href="../reference/proportion.html">sir_df()</a></code> and <code><a href="../reference/bug_drug_combinations.html">bug_drug_combinations()</a></code>), will now return the same data type as the input.</li>
|
||||
|
@ -270,9 +271,11 @@
|
|||
<li>Fix for <code><a href="../reference/mo_property.html">mo_shortname()</a></code> in case of higher taxonomic ranks (order, class, phylum)</li>
|
||||
<li>Cleaning columns with <code><a href="../reference/as.sir.html">as.sir()</a></code>, <code><a href="../reference/as.mic.html">as.mic()</a></code>, or <code><a href="../reference/as.disk.html">as.disk()</a></code> will now show the column name in the warning for invalid results</li>
|
||||
<li>Fix for using <code><a href="../reference/g.test.html">g.test()</a></code> with zeroes in a 2x2 table</li>
|
||||
<li>
|
||||
<code><a href="../reference/get_episode.html">get_episode()</a></code> now returns class <code>integer</code> instead of <code>numeric</code> since they are always whole numbers</li>
|
||||
</ul></div>
|
||||
<div class="section level3">
|
||||
<h3 id="other-1-8-2-9119">Other<a class="anchor" aria-label="anchor" href="#other-1-8-2-9119"></a></h3>
|
||||
<h3 id="other-1-8-2-9120">Other<a class="anchor" aria-label="anchor" href="#other-1-8-2-9120"></a></h3>
|
||||
<ul><li>Added Peter Dutey-Magni, Dmytro Mykhailenko, Anton Mymrikov, Andrew Norgan, Jonas Salm, and Anita Williams as contributors, to thank them for their valuable input</li>
|
||||
<li>New website to make use of the new Bootstrap 5 and pkgdown 2.0. The website now contains results for all examples and will be automatically regenerated with every change to our repository, using GitHub Actions</li>
|
||||
<li>All R and Rmd files in this project are now styled using the <code>styler</code> package</li>
|
||||
|
|
|
@ -11,7 +11,7 @@ articles:
|
|||
datasets: datasets.html
|
||||
resistance_predict: resistance_predict.html
|
||||
welcome_to_AMR: welcome_to_AMR.html
|
||||
last_built: 2023-02-12T10:25Z
|
||||
last_built: 2023-02-12T14:14Z
|
||||
urls:
|
||||
reference: https://msberends.github.io/AMR/reference
|
||||
article: https://msberends.github.io/AMR/articles
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -157,6 +157,7 @@
|
|||
<li><p><code>AMR_guideline</code> <br> Used for setting the default guideline for interpreting MIC values and disk diffusion diameters with <code><a href="as.sir.html">as.sir()</a></code>. Can be only the guideline name (e.g., <code>"CLSI"</code>) or the name with a year (e.g. <code>"CLSI 2019"</code>). The default is <code>"EUCAST 2022"</code>. Supported guideline are currently EUCAST (2013-2022) and CLSI (2013-2022).</p></li>
|
||||
<li><p><code>AMR_ignore_pattern</code> <br> A <a href="https://rdrr.io/r/base/regex.html" class="external-link">regular expression</a> to define input that must be ignored in <code><a href="as.mo.html">as.mo()</a></code> and all <code><a href="mo_property.html">mo_*</a></code> functions.</p></li>
|
||||
<li><p><code>AMR_include_PKPD</code> <br> A <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to use in <code><a href="as.sir.html">as.sir()</a></code>, to indicate that PK/PD clinical breakpoints must be applied as a last resort, defaults to <code>TRUE</code>.</p></li>
|
||||
<li><p><code>AMR_include_screening</code> <br> A <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to use in <code><a href="as.sir.html">as.sir()</a></code>, to indicate that clinical breakpoints for screening are allowed, defaults to <code>FALSE</code>.</p></li>
|
||||
<li><p><code>AMR_keep_synonyms</code> <br> A <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to use in <code><a href="as.mo.html">as.mo()</a></code> and all <code><a href="mo_property.html">mo_*</a></code> functions, to indicate if old, previously valid taxonomic names must be preserved and not be corrected to currently accepted names.</p></li>
|
||||
<li><p><code>AMR_locale</code> <br> A language to use for the <code>AMR</code> package, can be one of these supported language names or ISO-639-1 codes: English (en), Chinese (zh), Czech (cs), Danish (da), Dutch (nl), Finnish (fi), French (fr), German (de), Greek (el), Italian (it), Japanese (ja), Norwegian (no), Polish (pl), Portuguese (pt), Romanian (ro), Russian (ru), Spanish (es), Swedish (sv), Turkish (tr) or Ukrainian (uk).</p></li>
|
||||
<li><p><code>AMR_mo_source</code> <br> A file location for a manual code list to be used in <code><a href="as.mo.html">as.mo()</a></code> and all <code><a href="mo_property.html">mo_*</a></code> functions. This is explained in <code><a href="mo_source.html">set_mo_source()</a></code>.</p></li>
|
||||
|
@ -167,7 +168,10 @@
|
|||
|
||||
<p>Settings in <span style="R">R</span> are not saved globally and are thus lost when <span style="R">R</span> is exited. You can save your options to your own <code>.Rprofile</code> file, which is a user-specific file. You can edit it using:</p>
|
||||
<p></p><div class="sourceCode r"><pre><code><span> <span class="fu">utils</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/r/utils/file.edit.html" class="external-link">file.edit</a></span><span class="op">(</span><span class="st">"~/.Rprofile"</span><span class="op">)</span></span></code></pre><p></p></div>
|
||||
<p>In this file, you can set options such as <code>options(AMR_locale = "pt")</code> for Portuguese language support of antibiotics.</p><div class="section">
|
||||
<p>In this file, you can set options such as:</p>
|
||||
<p></p><div class="sourceCode r"><pre><code><span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">options</a></span><span class="op">(</span>AMR_locale <span class="op">=</span> <span class="st">"pt"</span><span class="op">)</span></span>
|
||||
<span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">options</a></span><span class="op">(</span>AMR_include_PKPD <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></code></pre><p></p></div>
|
||||
<p>to add Portuguese language support of antibiotics, and allow PK/PD rules when interpreting MIC values with <code><a href="as.sir.html">as.sir()</a></code>.</p><div class="section">
|
||||
<h3 id="share-options-within-team">Share Options Within Team<a class="anchor" aria-label="anchor" href="#share-options-within-team"></a></h3>
|
||||
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ The AMR package is available in English, Chinese, Danish, Dutch, French, German,
|
|||
|
||||
<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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 16 KiB |
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -205,16 +205,16 @@
|
|||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">df</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> birth_date age age_exact age_at_y2k</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1973-02-10 50 50.00548 26</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1996-11-25 26 26.21644 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1944-11-18 78 78.23562 55</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1953-05-17 69 69.74247 46</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1947-10-24 75 75.30411 52</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1946-10-16 76 76.32603 53</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1990-07-02 32 32.61644 9</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1967-10-18 55 55.32055 32</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1974-09-23 48 48.38904 25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1978-11-08 44 44.26301 21</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1992-02-02 31 31.02740 7</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1946-11-05 76 76.27123 53</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1941-11-26 81 81.21370 58</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1935-11-05 87 87.27123 64</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1976-09-09 46 46.42740 23</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1957-04-07 65 65.85205 42</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1981-12-01 41 41.20000 18</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1956-12-07 66 66.18356 43</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1932-02-10 91 91.00548 67</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1991-09-13 31 31.41644 8</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -14,7 +14,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="Interpret minimum inhibitory concentration (MIC) values and disk diffusion diameters according to EUCAST or CLSI, or clean up existing SIR values. This transforms the input to a new class sir, which is an ordered factor with levels S &lt; I &lt; R."><title>Translate MIC and Disk Diffusion to SIR, or Clean Existing SIR Data — as.sir • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><link href="../deps/Fira_Code-0.4.5/font.css" rel="stylesheet"><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Translate MIC and Disk Diffusion to SIR, or Clean Existing SIR Data — as.sir"><meta property="og:description" content="Interpret minimum inhibitory concentration (MIC) values and disk diffusion diameters according to EUCAST or CLSI, or clean up existing SIR values. This transforms the input to a new class sir, which is an ordered factor with levels S &lt; I &lt; R."><meta property="og:image" content="https://msberends.github.io/AMR/logo.svg"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:creator" content="@msberends"><meta name="twitter:site" content="@msberends"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
||||
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="Interpret minimum inhibitory concentration (MIC) values and disk diffusion diameters according to EUCAST or CLSI, or clean up existing SIR values. This transforms the input to a new class sir, which is an ordered factor with levels S &lt; I &lt; R.
|
||||
All breakpoints used for interpretation are publicly available in the clinical_breakpoints data set."><title>Translate MIC and Disk Diffusion to SIR, or Clean Existing SIR Data — as.sir • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><link href="../deps/Fira_Code-0.4.5/font.css" rel="stylesheet"><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Translate MIC and Disk Diffusion to SIR, or Clean Existing SIR Data — as.sir"><meta property="og:description" content="Interpret minimum inhibitory concentration (MIC) values and disk diffusion diameters according to EUCAST or CLSI, or clean up existing SIR values. This transforms the input to a new class sir, which is an ordered factor with levels S &lt; I &lt; R.
|
||||
All breakpoints used for interpretation are publicly available in the clinical_breakpoints data set."><meta property="og:image" content="https://msberends.github.io/AMR/logo.svg"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:creator" content="@msberends"><meta name="twitter:site" content="@msberends"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]--></head><body>
|
||||
|
@ -10,7 +12,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -144,6 +146,7 @@
|
|||
|
||||
<div class="ref-description section level2">
|
||||
<p>Interpret minimum inhibitory concentration (MIC) values and disk diffusion diameters according to EUCAST or CLSI, or clean up existing SIR values. This transforms the input to a new class <code>sir</code>, which is an ordered <a href="https://rdrr.io/r/base/factor.html" class="external-link">factor</a> with levels <code>S < I < R</code>.</p>
|
||||
<p>All breakpoints used for interpretation are publicly available in the <a href="clinical_breakpoints.html">clinical_breakpoints</a> data set.</p>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
|
@ -166,6 +169,7 @@
|
|||
<span> conserve_capped_values <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> add_intrinsic_resistance <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> reference_data <span class="op">=</span> <span class="fu">AMR</span><span class="fu">::</span><span class="va"><a href="clinical_breakpoints.html">clinical_breakpoints</a></span>,</span>
|
||||
<span> include_screening <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_screening"</span>, <span class="cn">FALSE</span><span class="op">)</span>,</span>
|
||||
<span> include_PKPD <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_PKPD"</span>, <span class="cn">TRUE</span><span class="op">)</span>,</span>
|
||||
<span> <span class="va">...</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
|
@ -179,6 +183,7 @@
|
|||
<span> uti <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||
<span> add_intrinsic_resistance <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> reference_data <span class="op">=</span> <span class="fu">AMR</span><span class="fu">::</span><span class="va"><a href="clinical_breakpoints.html">clinical_breakpoints</a></span>,</span>
|
||||
<span> include_screening <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_screening"</span>, <span class="cn">FALSE</span><span class="op">)</span>,</span>
|
||||
<span> include_PKPD <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_PKPD"</span>, <span class="cn">TRUE</span><span class="op">)</span>,</span>
|
||||
<span> <span class="va">...</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
|
@ -193,6 +198,7 @@
|
|||
<span> conserve_capped_values <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> add_intrinsic_resistance <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> reference_data <span class="op">=</span> <span class="fu">AMR</span><span class="fu">::</span><span class="va"><a href="clinical_breakpoints.html">clinical_breakpoints</a></span>,</span>
|
||||
<span> include_screening <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_screening"</span>, <span class="cn">FALSE</span><span class="op">)</span>,</span>
|
||||
<span> include_PKPD <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_PKPD"</span>, <span class="cn">TRUE</span><span class="op">)</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
|
@ -251,6 +257,10 @@
|
|||
<dd><p>a <a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a> to be used for interpretation, which defaults to the <a href="clinical_breakpoints.html">clinical_breakpoints</a> data set. Changing this argument allows for using own interpretation guidelines. This argument must contain a data set that is equal in structure to the <a href="clinical_breakpoints.html">clinical_breakpoints</a> data set (same column names and column types). Please note that the <code>guideline</code> argument will be ignored when <code>reference_data</code> is manually set.</p></dd>
|
||||
|
||||
|
||||
<dt>include_screening</dt>
|
||||
<dd><p>a <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to indicate that clinical breakpoints for screening are allowed, defaults to <code>FALSE</code>. Can also be set with the option <code><a href="AMR-options.html">AMR_include_screening</a></code>.</p></dd>
|
||||
|
||||
|
||||
<dt>include_PKPD</dt>
|
||||
<dd><p>a <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to indicate that PK/PD clinical breakpoints must be applied as a last resort, defaults to <code>TRUE</code>. Can also be set with the option <code><a href="AMR-options.html">AMR_include_PKPD</a></code>.</p></dd>
|
||||
|
||||
|
@ -314,7 +324,7 @@
|
|||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3 id="machine-readable-interpretation-guidelines">Machine-Readable Interpretation Guidelines<a class="anchor" aria-label="anchor" href="#machine-readable-interpretation-guidelines"></a></h3>
|
||||
<h3 id="machine-readable-clinical-breakpoints">Machine-Readable Clinical Breakpoints<a class="anchor" aria-label="anchor" href="#machine-readable-clinical-breakpoints"></a></h3>
|
||||
|
||||
|
||||
<p>The repository of this package <a href="https://github.com/msberends/AMR/blob/main/data-raw/clinical_breakpoints.txt" class="external-link">contains a machine-readable version</a> of all guidelines. This is a CSV file consisting of 18 308 rows and 11 columns. This file is machine-readable, since it contains one row for every unique combination of the test method (MIC or disk diffusion), the antimicrobial drug and the microorganism. <strong>This allows for easy implementation of these rules in laboratory information systems (LIS)</strong>. Note that it only contains interpretation guidelines for humans - interpretation guidelines from CLSI for animals were removed.</p>
|
||||
|
@ -524,16 +534,16 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
|||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 50 × 17</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> datetime index ab_input ab_guid…¹ mo_in…² mo_guideline guide…³</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;"><ab></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>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2023-02-12 <span style="color: #949494;">10:26:44</span> 1 TOB TOB Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2023-02-12 <span style="color: #949494;">10:26:43</span> 1 GEN GEN Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2023-02-12 <span style="color: #949494;">10:26:43</span> 1 CIP CIP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2023-02-12 <span style="color: #949494;">10:26:42</span> 1 AMP AMP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2023-02-12 <span style="color: #949494;">10:26:36</span> 1 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2023-02-12 <span style="color: #949494;">10:26:36</span> 2 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2023-02-12 <span style="color: #949494;">10:26:36</span> 3 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2023-02-12 <span style="color: #949494;">10:26:36</span> 4 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2023-02-12 <span style="color: #949494;">10:26:36</span> 5 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2023-02-12 <span style="color: #949494;">10:26:36</span> 6 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2023-02-12 <span style="color: #949494;">14:15:05</span> 1 TOB TOB Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2023-02-12 <span style="color: #949494;">14:15:05</span> 1 GEN GEN Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2023-02-12 <span style="color: #949494;">14:15:04</span> 1 CIP CIP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2023-02-12 <span style="color: #949494;">14:15:04</span> 1 AMP AMP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2023-02-12 <span style="color: #949494;">14:14:59</span> 1 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2023-02-12 <span style="color: #949494;">14:14:59</span> 2 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2023-02-12 <span style="color: #949494;">14:14:59</span> 3 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2023-02-12 <span style="color: #949494;">14:14:59</span> 4 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2023-02-12 <span style="color: #949494;">14:14:59</span> 5 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2023-02-12 <span style="color: #949494;">14:14:59</span> 6 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># … with 40 more rows, 10 more variables: ref_table <chr>, method <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># input <dbl>, outcome <sir>, breakpoint_S_R <chr>, ab_considered <lgl>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># mo_considered <lgl>, breakpoint_S <lgl>, breakpoint_R <lgl>,</span></span>
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -12,7 +12,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -12,7 +12,7 @@ To improve the interpretation of the antibiogram before EUCAST rules are applied
|
|||
|
||||
<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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -12,7 +12,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -273,7 +273,7 @@
|
|||
|
||||
<code><a href="get_episode.html">get_episode()</a></code> <code><a href="get_episode.html">is_new_episode()</a></code>
|
||||
</dt>
|
||||
<dd>Determine (New) Episodes for Patients</dd>
|
||||
<dd>Determine (Clinical) Episodes</dd>
|
||||
</dl><dl><dt>
|
||||
|
||||
<code><a href="first_isolate.html">first_isolate()</a></code> <code><a href="first_isolate.html">filter_first_isolate()</a></code>
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -182,9 +182,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.983574</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2.984473</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.07041612</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.0007148714</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -201,31 +201,30 @@
|
|||
<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 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] I R R R R I S R S R</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S R I S S I S R S I</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] -1.1618950 0.7745967 0.7745967 0.7745967 0.7745967 -1.1618950</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.1618950 0.7745967 -1.1618950 0.7745967</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.4743416 1.8973666 -0.4743416 -0.4743416 -0.4743416 -0.4743416</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.4743416 1.8973666 -0.4743416 -0.4743416</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 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 16 0.01 32 128 4 0.5 <=0.005 <=0.005 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] >=256 32 8 0.005 0.002 16 16 4 0.125 1 </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.94388242 -1.02867586 1.12920607 1.49985337 0.57323512 0.01726417</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.21399951 -1.21399951 -0.35338313 -0.35338313</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1.3250871 0.7850408 0.4250100 -1.4910484 -1.7290159 0.6050254</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.6050254 0.2449945 -0.6550826 -0.1150363</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.94388242 -1.02867586 1.12920607 1.49985337 0.57323512 0.01726417</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.21399951 -1.21399951 -0.35338313 -0.35338313</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1.3250871 0.7850408 0.4250100 -1.4910484 -1.7290159 0.6050254</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.6050254 0.2449945 -0.6550826 -0.1150363</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 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 24 40 44 31 40 34 22 41 49 40</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 50 49 21 41 42 7 13 6 10 29</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] -1.4460560 0.4048957 0.8676336 -0.6362647 0.4048957 -0.2892112</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.6774250 0.5205802 1.4460560 0.4048957</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1.3154103 1.2587116 -0.3288526 0.8051218 0.8618206 -1.1226347</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.7824423 -1.1793334 -0.9525385 0.1247372</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>
|
||||
|
@ -235,22 +234,22 @@
|
|||
<span class="r-in"><span> tobr <span class="op">=</span> <span class="fu"><a href="random.html">random_mic</a></span><span class="op">(</span><span class="fl">10</span>, ab <span class="op">=</span> <span class="st">"tobr"</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">y</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A R 21 2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B R 20 2 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C S 22 1 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D S 28 2 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 22 1 0.25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F R 18 2 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G R 23 2 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H S 25 1 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I I 21 2 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J I 18 2 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A R 22 0.25 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B I 26 2 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C I 27 4 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 30 0.25 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E S 17 2 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F I 30 2 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 19 0.5 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 23 0.25 <=0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I R 27 1 <=0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J I 31 4 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> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent" and</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> "tobr"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.14721958 0.32396692 -0.25487609 0.75483654 -1.03119985 0.15991243</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.69943595 -0.52634353 -0.07812875 -0.19482320</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.07399410 -0.03958601 0.56084503 0.09513514 -0.24454184 0.30038844</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.31486005 -0.91854813 0.11340013 0.37377319</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="https://tidyselect.r-lib.org/reference/where.html" class="external-link">where</a></span><span class="op">(</span><span class="va">is.mic</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .subset(x, j):</span> invalid subscript type 'list'</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>
|
||||
|
@ -266,17 +265,17 @@
|
|||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent" and</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> "tobr"</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 22 1 16 -0.25487609 0.0000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 J I 18 2 8 -0.19482320 0.0600529</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 I I 21 2 4 -0.07812875 0.1767473</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 H S 25 1 1 -0.52634353 0.2714674</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 A R 21 2 1 0.14721958 0.4020957</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F R 18 2 4 0.15991243 0.4147885</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 B R 20 2 4 0.32396692 0.5788430</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 E I 22 1 0.25 -1.03119985 0.7763238</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 G R 23 2 8 0.69943595 0.9543120</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 D S 28 2 16 0.75483654 1.0097126</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 I 27 4 16 0.56084503 0.0000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 J I 31 4 2 0.37377319 0.1870718</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 F I 30 2 4 0.30038844 0.2604566</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 I R 27 1 <=0.5 0.11340013 0.4474449</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 D R 30 0.25 1 0.09513514 0.4657099</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 A R 22 0.25 8 0.07399410 0.4868509</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 B I 26 2 2 -0.03958601 0.6004310</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 E S 17 2 8 -0.24454184 0.8053869</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 G S 19 0.5 16 -0.31486005 0.8757051</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 H I 23 0.25 <=0.5 -0.91854813 1.4793932</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>
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -12,7 +12,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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: 26 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 52 KiB |
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -12,7 +12,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
|||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -193,42 +193,43 @@
|
|||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2 4 64 0.5 2 0.025 0.25 8 0.0625 0.001 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.5 32 1 0.25 0.25 0.125 0.025 >=128 32 0.0625</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.125 32 16 8 >=128 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1 0.025 0.25 >=128 0.005 0.125 0.01 32 0.01 8 0.002 32 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] 4 4 0.01 4 0.01 16 0.025 0.5 0.002 0.25 0.001 64 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] 4 </span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 9 12 29 26 27 48 37 36 32 47 34 44 20 36 38 12 50 48 16 34 50 34 42 44 29</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 45 43 50 33 10 21 20 26 34 15 43 40 36 46 30 50 46 31 50 44 28 42 19 10 45</span>
|
||||
<span class="r-in"><span><span class="fu">random_sir</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R R R I S I R I S I R I S I I S I S S R R S I R R</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R S R I I S S R I R S R I R S S S S R S S I S R I</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># \donttest{</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># make the random generation more realistic by setting a bug and/or drug:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span> <span class="co"># range 0.0625-64</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.5 256 32 0.5 0.125 4 0.25 0.002 0.01 0.005 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 1 0.005 16 32 0.0625 0.0625 0.125 1 4 128 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 8 128 4 2 4 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.25 16 0.5 64 0.25 >=128 4 1 >=128 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 1 32 0.005 0.002 2 0.5 64 32 0.0625 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] <=0.001 >=128 0.002 0.005 4 64 0.25 </span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span>, <span class="st">"meropenem"</span><span class="op">)</span> <span class="co"># range 0.0625-16</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 16 16 8 4 32 32 4 2 16 32 8 4 4 2 4 16 2 4 8 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [20] 4 4 32 <=1 16 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 32 32 1 0.5 1 1 1 4 32 0.5 8 64 1 64 64 4 1 4 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [20] 2 2 4 32 1 16 </span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"meropenem"</span><span class="op">)</span> <span class="co"># range 0.0625-4</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1 4 0.25 0.0625 4 0.125 0.125 1 0.25 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.125 1 0.0625 0.125 8 4 0.5 2 0.5 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 4 0.25 0.5 0.5 4 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.25 0.125 0.25 0.125 0.5 0.5 0.25 1 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [9] 2 0.25 0.5 <=0.0625 0.25 0.125 <=0.0625 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [17] 0.125 0.125 4 0.25 0.5 0.125 1 0.5 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] 0.25 </span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span> <span class="co"># range 8-50</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 10 48 23 44 36 40 20 21 39 13 43 50 24 24 41 18 22 37 40 22 45 29 13 44 13</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 38 38 25 42 21 30 49 29 14 31 23 20 45 21 19 50 32 16 41 43 23 9 27 22 28</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span>, <span class="st">"ampicillin"</span><span class="op">)</span> <span class="co"># range 11-17</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 15 15 12 16 13 15 12 13 16 17 14 14 14 12 15 13 14 12 17 13 13 16 11 11 17</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 12 16 17 11 12 17 17 15 15 16 17 15 14 16 15 16 17 13 15 14 13 12 13 15 12</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"ampicillin"</span><span class="op">)</span> <span class="co"># range 12-27</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 16 27 21 20 16 17 19 26 25 25 18 21 18 16 24 27 24 23 24 16 15 22 24 24 15</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 17 25 24 20 19 17 16 23 24 23 23 25 26 25 26 19 17 23 17 25 19 19 23 20 25</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|
|
@ -12,7 +12,7 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu
|
|||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
@ -181,7 +181,7 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu
|
|||
<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">skewness</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/stats/Uniform.html" class="external-link">runif</a></span><span class="op">(</span><span class="fl">1000</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 6.162061e-05</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.03042828</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
|
|
@ -10,7 +10,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="">1.8.2.9119</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9120</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">
|
||||
|
|