Built site for AMR: 2.0.0.9011@2758615
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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -187,7 +187,7 @@
|
||||
website update since they are based on randomly created values and the
|
||||
page was written in <a href="https://rmarkdown.rstudio.com/" class="external-link">R
|
||||
Markdown</a>. However, the methodology remains unchanged. This page was
|
||||
generated on 17 April 2023.</p>
|
||||
generated on 18 April 2023.</p>
|
||||
<div class="section level2">
|
||||
<h2 id="introduction">Introduction<a class="anchor" aria-label="anchor" href="#introduction"></a>
|
||||
</h2>
|
||||
@ -243,21 +243,21 @@ make the structure of your data generally look like this:</p>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">2023-04-17</td>
|
||||
<td align="center">2023-04-18</td>
|
||||
<td align="center">abcd</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2023-04-17</td>
|
||||
<td align="center">2023-04-18</td>
|
||||
<td align="center">abcd</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2023-04-17</td>
|
||||
<td align="center">2023-04-18</td>
|
||||
<td align="center">efgh</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">R</td>
|
||||
@ -962,110 +962,110 @@ antibiograms:</p>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>E. coli</em> (443-443)</td>
|
||||
<td align="right">67</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">65</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>E. coli</em> (395-395)</td>
|
||||
<td align="right">65</td>
|
||||
<em>E. coli</em> (400-400)</td>
|
||||
<td align="right">68</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">63</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>E. coli</em> (412-412)</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">61</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (108-108)</td>
|
||||
<td align="right">61</td>
|
||||
<td align="right">55</td>
|
||||
<td align="right">48</td>
|
||||
<td align="right">59</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (109-109)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">51</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (99-99)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">52</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">59</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (230-230)</td>
|
||||
<td align="right">67</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">58</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (227-227)</td>
|
||||
<em>E. coli</em> (442-442)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">67</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (204-204)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">55</td>
|
||||
<td align="right">64</td>
|
||||
<em>E. coli</em> (408-408)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (145-145)</td>
|
||||
<td align="right">63</td>
|
||||
<em>K. pneumoniae</em> (114-114)</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">49</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">61</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (99-99)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">58</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (103-103)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">53</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">61</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (246-246)</td>
|
||||
<td align="right">61</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">60</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (213-213)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">55</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">68</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (202-202)</td>
|
||||
<td align="right">68</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">61</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (129-129)</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">54</td>
|
||||
<td align="right">61</td>
|
||||
<td align="right">67</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (123-123)</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">59</td>
|
||||
<em>S. pneumoniae</em> (139-139)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">60</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (131-131)</td>
|
||||
<td align="right">69</td>
|
||||
<td align="right">51</td>
|
||||
<td align="right">55</td>
|
||||
<td align="right">68</td>
|
||||
<td align="right">50</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">67</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1090,45 +1090,45 @@ antibiograms:</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">Gram-negative (551-551)</td>
|
||||
<td align="left">Gram-negative (514-514)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">55</td>
|
||||
<td align="right">64</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">Gram-negative (504-504)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">56</td>
|
||||
<td align="left">Gram-negative (541-541)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">61</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">Gram-negative (511-511)</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">61</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">Gram-positive (375-375)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">Gram-positive (350-350)</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">57</td>
|
||||
<td align="left">Gram-positive (352-352)</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">66</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">Gram-positive (335-335)</td>
|
||||
<td align="right">67</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">66</td>
|
||||
<td align="left">Gram-positive (333-333)</td>
|
||||
<td align="right">68</td>
|
||||
<td align="right">55</td>
|
||||
<td align="right">64</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1152,45 +1152,45 @@ antibiograms:</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">Gram-negative (551-551)</td>
|
||||
<td align="left">Gram-negative (514-514)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">77</td>
|
||||
<td align="right">77</td>
|
||||
<td align="right">78</td>
|
||||
<td align="right">78</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">Gram-negative (504-504)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">77</td>
|
||||
<td align="right">74</td>
|
||||
<td align="left">Gram-negative (541-541)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">75</td>
|
||||
<td align="right">72</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">Gram-negative (511-511)</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">75</td>
|
||||
<td align="right">73</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">76</td>
|
||||
<td align="right">74</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">Gram-positive (375-375)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">79</td>
|
||||
<td align="right">77</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">Gram-positive (350-350)</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">75</td>
|
||||
<td align="right">73</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">Gram-positive (352-352)</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">80</td>
|
||||
<td align="right">77</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">Gram-positive (335-335)</td>
|
||||
<td align="right">67</td>
|
||||
<td align="right">78</td>
|
||||
<td align="right">76</td>
|
||||
<td align="left">Gram-positive (333-333)</td>
|
||||
<td align="right">68</td>
|
||||
<td align="right">77</td>
|
||||
<td align="right">77</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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,18 +385,18 @@ 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 R I S I S I</span></span>
|
||||
<span><span class="co">#> 2 S R R R I R</span></span>
|
||||
<span><span class="co">#> 3 R R I I S R</span></span>
|
||||
<span><span class="co">#> 4 I R S I R R</span></span>
|
||||
<span><span class="co">#> 5 R S S S R R</span></span>
|
||||
<span><span class="co">#> 6 R S R R R R</span></span>
|
||||
<span><span class="co">#> 1 R I S R S I</span></span>
|
||||
<span><span class="co">#> 2 S S I S I I</span></span>
|
||||
<span><span class="co">#> 3 R I I R I S</span></span>
|
||||
<span><span class="co">#> 4 I S S R R I</span></span>
|
||||
<span><span class="co">#> 5 S R R R R I</span></span>
|
||||
<span><span class="co">#> 6 R S R I R R</span></span>
|
||||
<span><span class="co">#> kanamycin</span></span>
|
||||
<span><span class="co">#> 1 R</span></span>
|
||||
<span><span class="co">#> 2 S</span></span>
|
||||
<span><span class="co">#> 3 R</span></span>
|
||||
<span><span class="co">#> 4 S</span></span>
|
||||
<span><span class="co">#> 5 R</span></span>
|
||||
<span><span class="co">#> 2 R</span></span>
|
||||
<span><span class="co">#> 3 I</span></span>
|
||||
<span><span class="co">#> 4 I</span></span>
|
||||
<span><span class="co">#> 5 S</span></span>
|
||||
<span><span class="co">#> 6 S</span></span></code></pre></div>
|
||||
<p>We can now add the interpretation of MDR-TB to our data set. You can
|
||||
use:</p>
|
||||
@ -438,40 +438,40 @@ Unique: 5</p>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">Mono-resistant</td>
|
||||
<td align="right">3238</td>
|
||||
<td align="right">64.76%</td>
|
||||
<td align="right">3238</td>
|
||||
<td align="right">64.76%</td>
|
||||
<td align="right">3221</td>
|
||||
<td align="right">64.42%</td>
|
||||
<td align="right">3221</td>
|
||||
<td align="right">64.42%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">Negative</td>
|
||||
<td align="right">1002</td>
|
||||
<td align="right">20.04%</td>
|
||||
<td align="right">4240</td>
|
||||
<td align="right">84.80%</td>
|
||||
<td align="right">1005</td>
|
||||
<td align="right">20.10%</td>
|
||||
<td align="right">4226</td>
|
||||
<td align="right">84.52%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="left">Multi-drug-resistant</td>
|
||||
<td align="right">408</td>
|
||||
<td align="right">8.16%</td>
|
||||
<td align="right">4648</td>
|
||||
<td align="right">92.96%</td>
|
||||
<td align="right">439</td>
|
||||
<td align="right">8.78%</td>
|
||||
<td align="right">4665</td>
|
||||
<td align="right">93.30%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="left">Poly-resistant</td>
|
||||
<td align="right">244</td>
|
||||
<td align="right">4.88%</td>
|
||||
<td align="right">4892</td>
|
||||
<td align="right">97.84%</td>
|
||||
<td align="right">241</td>
|
||||
<td align="right">4.82%</td>
|
||||
<td align="right">4906</td>
|
||||
<td align="right">98.12%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">5</td>
|
||||
<td align="left">Extensively drug-resistant</td>
|
||||
<td align="right">108</td>
|
||||
<td align="right">2.16%</td>
|
||||
<td align="right">94</td>
|
||||
<td align="right">1.88%</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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -178,7 +178,7 @@
|
||||
<h4 data-toc-skip class="author">Dr. Matthijs
|
||||
Berends</h4>
|
||||
|
||||
<h4 data-toc-skip class="date">17 April 2023</h4>
|
||||
<h4 data-toc-skip class="date">18 April 2023</h4>
|
||||
|
||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/HEAD/vignettes/SPSS.Rmd" class="external-link"><code>vignettes/SPSS.Rmd</code></a></small>
|
||||
<div class="d-none name"><code>SPSS.Rmd</code></div>
|
||||
|
@ -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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -176,7 +176,7 @@
|
||||
<main id="main" class="col-md-9"><div class="page-header">
|
||||
<img src="../logo.svg" class="logo" alt=""><h1>Data sets for download / own use</h1>
|
||||
|
||||
<h4 data-toc-skip class="date">17 April 2023</h4>
|
||||
<h4 data-toc-skip class="date">18 April 2023</h4>
|
||||
|
||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/HEAD/vignettes/datasets.Rmd" class="external-link"><code>vignettes/datasets.Rmd</code></a></small>
|
||||
<div class="d-none name"><code>datasets.Rmd</code></div>
|
||||
@ -877,21 +877,21 @@ inhibitors</td>
|
||||
<code>clinical_breakpoints</code>: Interpretation from MIC values
|
||||
& disk diameters to SIR<a class="anchor" aria-label="anchor" href="#clinical_breakpoints-interpretation-from-mic-values-disk-diameters-to-sir"></a>
|
||||
</h2>
|
||||
<p>A data set with 17 918 rows and 11 columns, containing the following
|
||||
<p>A data set with 18 271 rows and 11 columns, containing the following
|
||||
column names:<br><em>guideline</em>, <em>method</em>, <em>site</em>, <em>mo</em>,
|
||||
<em>rank_index</em>, <em>ab</em>, <em>ref_tbl</em>, <em>disk_dose</em>,
|
||||
<em>breakpoint_S</em>, <em>breakpoint_R</em>, and <em>uti</em>.</p>
|
||||
<p>This data set is in R available as <code>clinical_breakpoints</code>,
|
||||
after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 14 April 2023 21:14:34 UTC. Find more info
|
||||
<p>It was last updated on 18 April 2023 22:31:31 UTC. Find more info
|
||||
about the structure of this data set <a href="https://msberends.github.io/AMR/reference/clinical_breakpoints.html">here</a>.</p>
|
||||
<p><strong>Direct download links:</strong></p>
|
||||
<ul>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.rds" class="external-link">original
|
||||
R Data Structure (RDS) file</a> (42 kB)<br>
|
||||
R Data Structure (RDS) file</a> (43 kB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.txt" class="external-link">tab-separated
|
||||
text file</a> (1.8 MB)<br>
|
||||
text file</a> (1.9 MB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.xlsx" class="external-link">Microsoft
|
||||
Excel workbook</a> (0.8 MB)<br>
|
||||
@ -900,10 +900,10 @@ Excel workbook</a> (0.8 MB)<br>
|
||||
Feather file</a> (0.7 MB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.parquet" class="external-link">Apache
|
||||
Parquet file</a> (89 kB)<br>
|
||||
Parquet file</a> (87 kB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.sas" class="external-link">SAS
|
||||
data file</a> (3.5 MB)<br>
|
||||
data file</a> (3.6 MB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.sav" class="external-link">IBM
|
||||
SPSS Statistics data file</a> (2.3 MB)<br>
|
||||
|
@ -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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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,9 +142,9 @@
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 class="pkg-version" data-toc-text="2.0.0.9009" id="amr-2009009">AMR 2.0.0.9009<a class="anchor" aria-label="anchor" href="#amr-2009009"></a></h2>
|
||||
<h2 class="pkg-version" data-toc-text="2.0.0.9011" id="amr-2009011">AMR 2.0.0.9011<a class="anchor" aria-label="anchor" href="#amr-2009011"></a></h2>
|
||||
<div class="section level3">
|
||||
<h3 id="changed-2-0-0-9009">Changed<a class="anchor" aria-label="anchor" href="#changed-2-0-0-9009"></a></h3>
|
||||
<h3 id="changed-2-0-0-9011">Changed<a class="anchor" aria-label="anchor" href="#changed-2-0-0-9011"></a></h3>
|
||||
<ul><li>formatting fix for <code><a href="../reference/as.sir.html">sir_interpretation_history()</a></code>
|
||||
</li>
|
||||
<li>Fixed some WHONET codes for microorganisms and consequently a couple of entries in <code>clinical_breakpoints</code>
|
||||
|
@ -11,7 +11,7 @@ articles:
|
||||
datasets: datasets.html
|
||||
resistance_predict: resistance_predict.html
|
||||
welcome_to_AMR: welcome_to_AMR.html
|
||||
last_built: 2023-04-17T09:33Z
|
||||
last_built: 2023-04-18T22:39Z
|
||||
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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -24,7 +24,7 @@ The AMR package is available in English, Chinese, Czech, Danish, Dutch, Finnish,
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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: 13 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 7.9 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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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 1948-06-20 74 74.82466 51</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1965-01-08 58 58.27123 34</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1970-04-04 53 53.03562 29</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1995-07-29 27 27.71781 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1998-11-21 24 24.40274 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1990-11-23 32 32.39726 9</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1934-09-09 88 88.60274 65</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1982-09-28 40 40.55068 17</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1963-06-12 59 59.84658 36</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1953-05-04 69 69.95342 46</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1944-01-29 79 79.21644 55</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1968-06-14 54 54.84384 31</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1977-04-26 45 45.97808 22</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1994-07-25 28 28.73151 5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1978-09-18 44 44.58082 21</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1939-02-22 84 84.15068 60</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1960-05-16 62 62.92329 39</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1983-01-01 40 40.29315 17</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1946-02-09 77 77.18630 53</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1991-02-01 32 32.20822 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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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 @@ In short, if you have a column name that resembles an antimicrobial drug, it wil
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -609,10 +609,10 @@ In short, if you have a column name that resembles an antimicrobial drug, it wil
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 5 × 1</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> kefzol</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><sir></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> I </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> I </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> I </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> S </span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
|
@ -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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -256,10 +256,12 @@
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMX' (amoxicillin) according to EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for amoxicillin (AMX) in Streptococcus</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming body site 'Meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming an unspecified body site.</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</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="as.sir.html">as.sir</a></span><span class="op">(</span></span></span>
|
||||
<span class="r-in"><span> x <span class="op">=</span> <span class="fu">as.mic</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">0.01</span>, <span class="fl">2</span>, <span class="fl">4</span>, <span class="fl">8</span><span class="op">)</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span> mo <span class="op">=</span> <span class="fu"><a href="as.mo.html">as.mo</a></span><span class="op">(</span><span class="st">"Streptococcus pneumoniae"</span><span class="op">)</span>,</span></span>
|
||||
@ -269,10 +271,12 @@
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMX' (amoxicillin) according to EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for amoxicillin (AMX) in Streptococcus</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming body site 'Meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming an unspecified body site.</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] S R R R</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S S I I</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># plot MIC values, see ?plot</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="plot.html">plot</a></span><span class="op">(</span><span class="va">mic_data</span><span class="op">)</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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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 @@ All breakpoints used for interpretation are publicly available in the clinical_b
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -327,7 +327,7 @@ All breakpoints used for interpretation are publicly available in the clinical_b
|
||||
<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 17 918 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>
|
||||
<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 271 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>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
@ -508,10 +508,14 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span><span class="fu">as.sir</span><span class="op">(</span><span class="va">df</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of column 'AMP' (ampicillin) according to EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of column 'CIP' (ciprofloxacin) according to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting disk diffusion zones of column 'GEN' (gentamicin) according</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
@ -527,23 +531,23 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Assigning class 'sir' to already clean column 'ERY' (erythromycin)...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> microorganism AMP CIP GEN TOB ERY</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli S I S S R</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli I I S S R</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># return a 'logbook' about the results:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">sir_interpretation_history</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 50 × 12</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> datetime index ab_input ab_guideline mo_input mo_guideline </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>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2023-04-17 <span style="color: #949494;">09:34:07</span> 1 TOB TOB Escherichia… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2023-04-17 <span style="color: #949494;">09:34:06</span> 1 GEN GEN Escherichia… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2023-04-17 <span style="color: #949494;">09:34:06</span> 1 CIP CIP Escherichia… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2023-04-17 <span style="color: #949494;">09:34:05</span> 1 AMP AMP Escherichia… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2023-04-17 <span style="color: #949494;">09:33:59</span> 1 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2023-04-17 <span style="color: #949494;">09:33:59</span> 2 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2023-04-17 <span style="color: #949494;">09:33:59</span> 3 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2023-04-17 <span style="color: #949494;">09:33:59</span> 4 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2023-04-17 <span style="color: #949494;">09:33:59</span> 5 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2023-04-17 <span style="color: #949494;">09:33:59</span> 6 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2023-04-18 <span style="color: #949494;">22:40:53</span> 1 TOB TOB Escherich… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2023-04-18 <span style="color: #949494;">22:40:53</span> 1 GEN GEN Escherich… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2023-04-18 <span style="color: #949494;">22:40:52</span> 1 CIP CIP Escherich… UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2023-04-18 <span style="color: #949494;">22:40:52</span> 1 AMP AMP Escherich… UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2023-04-18 <span style="color: #949494;">22:40:45</span> 1 CIP CIP B_ESCHR_C… UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2023-04-18 <span style="color: #949494;">22:40:45</span> 2 CIP CIP B_ESCHR_C… UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2023-04-18 <span style="color: #949494;">22:40:45</span> 3 CIP CIP B_ESCHR_C… UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2023-04-18 <span style="color: #949494;">22:40:45</span> 4 CIP CIP B_ESCHR_C… UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2023-04-18 <span style="color: #949494;">22:40:45</span> 5 CIP CIP B_ESCHR_C… UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2023-04-18 <span style="color: #949494;">22:40:45</span> 6 CIP CIP B_ESCHR_C… UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 40 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 6 more variables: guideline <chr>, 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></span></span>
|
||||
@ -558,10 +562,12 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMP' (ampicillin) according to EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ampicillin (AMP) in Streptococcus</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming body site 'Non-meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming an unspecified body site.</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</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">as.sir</span><span class="op">(</span></span></span>
|
||||
<span class="r-in"><span> x <span class="op">=</span> <span class="fu"><a href="as.disk.html">as.disk</a></span><span class="op">(</span><span class="fl">18</span><span class="op">)</span>,</span></span>
|
||||
@ -607,16 +613,24 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting disk diffusion zones of 'GEN' (gentamicin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
@ -631,16 +645,24 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-msg co"><span class="r-pr">#></span> isolates are from urine. See ?as.sir.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting disk diffusion zones of 'GEN' (gentamicin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
@ -655,10 +677,14 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-msg co"><span class="r-pr">#></span> isolates are from urine. See ?as.sir.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting disk diffusion zones of 'GEN' (gentamicin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism' according to EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
@ -673,10 +699,14 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-msg co"><span class="r-pr">#></span> isolates are from urine. See ?as.sir.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMP' (ampicillin) according to EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'CIP' (ciprofloxacin) according to EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting disk diffusion zones of 'GEN' (gentamicin) according to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
@ -706,10 +736,14 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-msg co"><span class="r-pr">#></span> * WARNING *</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'AMP' (ampicillin) according to EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting MIC values of 'CIP' (ciprofloxacin) according to EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Interpreting disk diffusion zones of 'GEN' (gentamicin) according to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
@ -717,7 +751,7 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-msg co"><span class="r-pr">#></span> EUCAST 2022...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> microorganism AMP CIP GEN TOB ERY</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli S I S S R</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli I I S S R</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># For CLEANING existing SIR values ------------------------------------</span></span></span>
|
||||
<span class="r-in"><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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -153,7 +153,7 @@
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="format">Format<a class="anchor" aria-label="anchor" href="#format"></a></h2>
|
||||
<p>A <a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a> with 17 918 observations and 11 variables:</p><ul><li><p><code>guideline</code><br> Name of the guideline</p></li>
|
||||
<p>A <a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a> with 18 271 observations and 11 variables:</p><ul><li><p><code>guideline</code><br> Name of the guideline</p></li>
|
||||
<li><p><code>method</code><br> Either "DISK" or "MIC"</p></li>
|
||||
<li><p><code>site</code><br> Body site, e.g. "Oral" or "Respiratory"</p></li>
|
||||
<li><p><code>mo</code><br> Microbial ID, see <code><a href="as.mo.html">as.mo()</a></code></p></li>
|
||||
@ -178,7 +178,7 @@
|
||||
<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="va">clinical_breakpoints</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 17,918 × 11</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 18,271 × 11</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> guideline method site mo rank_index ab ref_tbl disk_dose</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><dbl></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;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> EUCAST 2022 MIC <span style="color: #BB0000;">NA</span> F_ASPRG_MGTS 2 AMB Aspergil… <span style="color: #BB0000;">NA</span> </span>
|
||||
@ -191,7 +191,7 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> EUCAST 2022 MIC <span style="color: #BB0000;">NA</span> F_CANDD_TRPC 2 AMB Candida <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> EUCAST 2022 MIC <span style="color: #BB0000;">NA</span> F_CRYPT_NFRM 2 AMB Candida <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> EUCAST 2022 DISK <span style="color: #BB0000;">NA</span> B_[ORD]_ENTRBCTR 5 AMC Enteroba… 20ug/10ug</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 17,908 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 18,261 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 3 more variables: breakpoint_S <dbl>, breakpoint_R <dbl>, uti <lgl></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -246,30 +246,29 @@
|
||||
<span class="r-in"><span><span class="va">df</span> <span class="op"><-</span> <span class="va">example_isolates</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/sample.html" class="external-link">sample</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/seq.html" class="external-link">seq_len</a></span><span class="op">(</span><span class="fl">2000</span><span class="op">)</span>, size <span class="op">=</span> <span class="fl">100</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">get_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, episode_days <span class="op">=</span> <span class="fl">60</span><span class="op">)</span> <span class="co"># indices</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 8 1 3 36 5 35 33 15 5 27 38 36 38 1 41 28 26 16 13 43 39 30 37 1 38</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 44 44 18 35 24 2 15 22 20 43 32 24 16 40 41 10 37 9 8 3 6 8 42 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 8 11 3 6 19 20 2 24 32 29 34 9 25 23 30 28 30 20 7 19 12 6 3 39 42</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 6 14 44 21 41 1 39 25 26 17 43 12 31 43 42 40 44 17 4 15 32 27 26 12 33</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 12 26 31 42 7 19 34 21 7 32 12 35 21 24 9 48 10 22 33 20 2 19 11 43 30</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 32 14 46 35 13 43 47 27 3 3 4 33 18 15 22 25 45 23 37 39 7 28 7 1 25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 1 24 42 40 33 18 41 23 5 14 44 48 48 40 26 7 1 16 13 13 6 27 18 45 7</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 30 36 18 18 45 39 16 9 45 31 47 48 3 4 46 5 18 17 9 38 39 29 28 9 8</span>
|
||||
<span class="r-in"><span><span class="fu">is_new_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, episode_days <span class="op">=</span> <span class="fl">60</span><span class="op">)</span> <span class="co"># TRUE/FALSE</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] FALSE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] FALSE TRUE FALSE TRUE FALSE TRUE TRUE FALSE TRUE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE FALSE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] TRUE FALSE FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] TRUE FALSE TRUE TRUE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] TRUE FALSE TRUE TRUE FALSE TRUE FALSE TRUE TRUE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] FALSE TRUE TRUE FALSE TRUE TRUE TRUE TRUE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] TRUE FALSE FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] TRUE FALSE FALSE TRUE</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># filter on results from the third 60-day episode only, using base R</span></span></span>
|
||||
<span class="r-in"><span><span class="va">df</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/which.html" class="external-link">which</a></span><span class="op">(</span><span class="fu">get_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, <span class="fl">60</span><span class="op">)</span> <span class="op">==</span> <span class="fl">3</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 4 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 3 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> date patient age gender ward mo PEN OXA FLC AMX </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2003-04-21 6BC362 62 M ICU B_STPHY_CONS R NA R R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 2003-04-08 114570 74 M ICU B_STRPT_GRPA S NA S S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> 2003-04-13 A26548 87 M ICU B_STPHY_CONS S NA S NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> 2003-04-25 6BC362 62 M ICU B_CRYNB R NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2002-10-22 718963 82 M ICU B_STPHY_EPDR R NA R R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 2002-12-14 144280 76 F Clinical B_STPHY_AURS R NA S R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> 2002-10-18 E55128 57 F ICU B_STPHY_AURS R NA S R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>, NIT <sir>,</span></span>
|
||||
@ -303,19 +302,19 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/arrange.html" class="external-link">arrange</a></span><span class="op">(</span><span class="va">patient</span>, <span class="va">condition</span>, <span class="va">date</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 100 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, condition [96]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, condition [98]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient date condition new_episode</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 051150 2007-01-02 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 060287 2007-03-11 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 067927 2002-01-07 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 067927 2002-01-29 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 067927 2002-02-05 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 0E2483 2008-07-22 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 114570 2003-04-08 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 1343BD 2016-04-02 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 175532 2010-04-10 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 218912 2007-02-24 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 006827 2009-07-24 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 006827 2009-07-24 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 022060 2004-05-04 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 023456 2012-11-24 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 082413 2002-06-04 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 083080 2010-02-25 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 097186 2015-10-28 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 0D7D34 2011-03-16 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 0D7D34 2011-03-19 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 0DBB93 2009-05-08 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 90 more rows</span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
@ -329,19 +328,19 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/arrange.html" class="external-link">arrange</a></span><span class="op">(</span><span class="va">patient</span>, <span class="va">ward</span>, <span class="va">date</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 100 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [96]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [93]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward date patient new_index new_logical</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> ICU 2007-01-02 051150 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> Clinical 2007-03-11 060287 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> ICU 2002-01-07 067927 1 FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> ICU 2002-01-29 067927 1 FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> ICU 2002-02-05 067927 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> Clinical 2008-07-22 0E2483 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> ICU 2003-04-08 114570 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Clinical 2016-04-02 1343BD 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> ICU 2010-04-10 175532 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> ICU 2007-02-24 218912 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> Clinical 2009-07-24 006827 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> Clinical 2009-07-24 006827 1 FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> ICU 2004-05-04 022060 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Clinical 2012-11-24 023456 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> ICU 2002-06-04 082413 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> Clinical 2010-02-25 083080 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> Clinical 2015-10-28 097186 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> ICU 2011-03-16 0D7D34 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> ICU 2011-03-19 0D7D34 1 FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> Clinical 2009-05-08 0DBB93 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 90 more rows</span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
@ -357,9 +356,9 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 3 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward n_patients n_episodes_365 n_episodes_60 n_episodes_30</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 49 13 33 40</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 41 9 25 31</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 6 5 6 6</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 64 13 37 46</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 25 10 18 21</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 4 4 4 4</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># grouping on patients and microorganisms leads to the same</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># results as first_isolate() when using 'episode-based':</span></span></span>
|
||||
@ -388,19 +387,19 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/select.html" class="external-link">select</a></span><span class="op">(</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_data.html" class="external-link">group_vars</a></span><span class="op">(</span><span class="va">.</span><span class="op">)</span>, <span class="va">flag_episode</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 100 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [99]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [94]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient mo ward flag_episode</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> E48302 B_STRPT_PNMN ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 8FD3C4 B_STPHY_CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 6BC362 B_STPHY_CONS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 335263 B_ENTRBC_CLOC Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 550406 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 972724 B_STPHY_HMLY ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> D53062 B_HMPHL_INFL Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 051150 B_STPHY_CONS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> D27318 B_STPHY_AURS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 566040 B_STRPT_PNMN ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> A90606 B_STRPT_PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> D19627 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 826357 B_STRPT_PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> E53416 B_STPHY_AURS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 394107 B_STPHY_CONS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 183220 B_STPHY_CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 023456 B_PROTS_MRBL Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 0DBB93 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 419655 B_STRPT_PNMN ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> A95779 B_STPHY_AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 90 more rows</span></span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
|
@ -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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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.95229</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2.960245</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.08987438</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.01701148</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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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,30 +201,31 @@
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">sir</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_sir</a></span><span class="op">(</span><span class="fl">10</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">sir</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R R R I S R R R R S</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] I I R S R S R R R S</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">sir</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.621059 0.621059 0.621059 -1.449138 -1.449138 0.621059 0.621059</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [8] 0.621059 0.621059 -1.449138</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.9486833 -0.9486833 0.9486833 -0.9486833 0.9486833 -0.9486833</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.9486833 0.9486833 0.9486833 -0.9486833</span>
|
||||
<span class="r-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] 64 0.125 32 4 0.0625 0.001 4 128 4 64 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 4 >=32 0.005 8 <=0.001 0.025 >=32 2 0.0625 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 0.025 </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.8649908 -0.7925812 0.6808161 0.1282921 -0.9767559 -2.0755022</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.1282921 1.0491654 0.1282921 0.8649908</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.6643931 1.2141827 -1.1029707 0.8476563 -1.5284946 -0.6774467</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.2141827 0.4811299 -0.4351860 -0.6774467</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.8649908 -0.7925812 0.6808161 0.1282921 -0.9767559 -2.0755022</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.1282921 1.0491654 0.1282921 0.8649908</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.6643931 1.2141827 -1.1029707 0.8476563 -1.5284946 -0.6774467</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.2141827 0.4811299 -0.4351860 -0.6774467</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] 8 50 16 42 22 38 39 29 34 28</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 37 30 32 24 18 32 47 10 37 15</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.7802697 1.5281961 -1.1500857 0.8980121 -0.6774478 0.5829202</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.6616932 -0.1260368 0.2678282 -0.2048098</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.7726039 0.1580326 0.3336244 -0.3687428 -0.8955181 0.3336244</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.6505628 -1.5978853 0.7726039 -1.1589058</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,21 +236,21 @@
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">y</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A S 23 4 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B S 17 2 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C R 31 <=0.25 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 18 0.5 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 19 <=0.25 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F I 30 0.5 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G R 20 1 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 31 <=0.25 <=2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I I 27 2 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J S 19 4 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A I 18 4 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B S 17 2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C I 23 <=0.5 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 28 <=0.5 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E S 21 <=0.5 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F S 25 4 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G I 28 1 <=0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H S 23 4 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I I 29 >=8 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J S 24 >=8 1</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">y</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent",</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> and "tobr"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.06541043 -0.48291290 0.75508761 -0.23028094 -0.47858500 0.34807060</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.01180992 -0.33212745 0.33539338 0.13895522</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.38190897 -0.59575522 -0.53742256 0.55691259 -0.19601880 0.04336306</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.31201874 0.38476682 0.90237881 0.13570302</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,16 +267,16 @@
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent",</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> and "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 R 31 <=0.25 16 0.75508761 0.0000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 F I 30 0.5 16 0.34807060 0.4070170</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 I I 27 2 8 0.33539338 0.4196942</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 J S 19 4 8 0.13895522 0.6161324</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 G R 20 1 <=2 0.01180992 0.7432777</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 A S 23 4 <=2 -0.06541043 0.8204980</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 D R 18 0.5 <=2 -0.23028094 0.9853685</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 31 <=0.25 <=2 -0.33212745 1.0872151</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 E I 19 <=0.25 8 -0.47858500 1.2336726</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 B S 17 2 <=2 -0.48291290 1.2380005</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 C I 23 <=0.5 1 -0.53742256 0.00000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B S 17 2 1 -0.59575522 0.05833266</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 A I 18 4 1 -0.38190897 0.15551359</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 G I 28 1 <=0.5 -0.31201874 0.22540382</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E S 21 <=0.5 4 -0.19601880 0.34140376</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F S 25 4 1 0.04336306 0.58078562</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 J S 24 >=8 1 0.13570302 0.67312558</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H S 23 4 4 0.38476682 0.92218938</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 D R 28 <=0.5 1 0.55691259 1.09433515</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 I I 29 >=8 4 0.90237881 1.43980137</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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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: 27 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 24 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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -312,8 +312,6 @@
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># when providing the microorganism and antibiotic, colours will show interpretations:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">plot</span><span class="op">(</span><span class="va">some_mic_values</span>, mo <span class="op">=</span> <span class="st">"S. aureus"</span>, ab <span class="op">=</span> <span class="st">"ampicillin"</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ No EUCAST 2022 MIC interpretations found for ampicillin in Staphylococcus</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> aureus</span>
|
||||
<span class="r-plt img"><img src="plot-4.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-in"><span><span class="fu">plot</span><span class="op">(</span><span class="va">some_disk_values</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-5.png" alt="" width="700" height="433"></span>
|
||||
|
@ -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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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] 0.125 2 4 2 4 16 0.5 0.001 16 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.0625 0.0625 0.125 >=256 0.5 0.005 0.5 >=256 0.025 0.001 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.0625 0.002 2 0.5 0.025 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.005 0.005 8 256 0.125 16 8 32 0.025 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 0.0625 0.0625 16 0.0625 0.005 4 <=0.001 256 4 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] 0.5 8 <=0.001 32 0.025 0.002 0.5 </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] 8 46 36 11 43 15 43 50 18 49 26 42 50 39 48 44 34 44 46 6 40 40 45 13 39</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 39 32 46 15 26 43 36 23 7 12 6 19 47 14 12 23 19 41 49 12 41 34 23 49 11</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] I S S R I I I R R I I I I R I I S R R I R R S S I</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R S S I R I S S I I I I S R S S I R I R R S I R S</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] 8 0.5 1 32 0.25 >=128 1 8 32 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] <=0.001 <=0.001 0.01 0.5 0.002 0.025 1 0.125 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] 1 0.01 0.01 0.0625 <=0.001 0.005 16 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 8 0.0625 0.001 16 4 0.0625 0.25 1 0.001 0.001 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.002 0.0625 2 0.5 0.005 0.01 0.5 64 0.025 0.5 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 4 0.0625 0.01 2 0.0625</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] 8 1 >=16 >=16 4 0.5 1 8 0.5 8 8 4 8 8 >=16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [16] 8 >=16 1 4 >=16 4 >=16 4 1 8 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 4 4 16 <=0.5 8 1 16 1 32 <=0.5 <=0.5 64 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] 1 2 32 32 2 16 2 4 2 4 8 32 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] 64 </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] 16 0.25 1 8 0.125 2 2 2 4 1 1 16 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] 4 2 0.25 0.25 8 4 8 0.125 2 8 8 0.125</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 8 0.125 2 0.125 >=16 0.0625 0.125 0.025 1 0.5 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.25 0.0625 0.125 4 0.5 >=16 2 1 8 0.25 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 8 4 0.5 1 0.125 </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] 26 40 25 44 10 49 50 46 38 23 11 48 45 11 25 29 47 50 46 8 47 31 40 48 42</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 30 40 48 47 38 29 22 40 44 40 29 28 38 48 50 34 13 41 40 50 43 33 34 19 43</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] 14 16 13 14 11 11 15 14 11 16 11 16 17 15 17 13 16 17 17 14 11 15 14 16 13</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 12 16 15 14 12 15 16 12 16 13 14 14 12 17 11 12 11 17 12 16 15 16 17 13 17</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] 18 27 27 15 16 18 18 22 17 27 25 20 23 22 22 25 16 20 18 16 16 22 19 18 24</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 21 26 27 24 18 18 22 23 18 19 24 15 27 25 22 27 20 17 16 26 16 15 25 20 18</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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<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] -0.007176564</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.04885183</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="">2.0.0.9009</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9011</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|