* Determination of first isolates now **excludes** all 'unknown' microorganisms at default, i.e. microbial code `"UNKNOWN"`. They can be included with the new parameter `include_unknown`:
* Determination of first isolates now **excludes** all 'unknown' microorganisms at default, i.e. microbial code `"UNKNOWN"`. They can be included with the new parameter `include_unknown`:
<p><strong>Note:</strong> values on this page will change with every website update since they are based on randomly created values and the page was written in <ahref="https://rmarkdown.rstudio.com/">R Markdown</a>. However, the methodology remains unchanged. This page was generated on 07 October 2019.</p>
<p><strong>Note:</strong> values on this page will change with every website update since they are based on randomly created values and the page was written in <ahref="https://rmarkdown.rstudio.com/">R Markdown</a>. However, the methodology remains unchanged. This page was generated on 12 October 2019.</p>
<p>So, we can draw at least two conclusions immediately. From a data scientists perspective, the data looks clean: only values <code>M</code> and <code>F</code>. From a researchers perspective: there are slightly more men. Nothing we didn’t already know.</p>
<p>So, we can draw at least two conclusions immediately. From a data scientists perspective, the data looks clean: only values <code>M</code> and <code>F</code>. From a researchers perspective: there are slightly more men. Nothing we didn’t already know.</p>
<p>The data is already quite clean, but we still need to transform some variables. The <code>bacteria</code> column now consists of text, and we want to add more variables based on microbial IDs later on. So, we will transform this column to valid IDs. The <code><ahref="https://dplyr.tidyverse.org/reference/mutate.html">mutate()</a></code> function of the <code>dplyr</code> package makes this really easy:</p>
<p>The data is already quite clean, but we still need to transform some variables. The <code>bacteria</code> column now consists of text, and we want to add more variables based on microbial IDs later on. So, we will transform this column to valid IDs. The <code><ahref="https://dplyr.tidyverse.org/reference/mutate.html">mutate()</a></code> function of the <code>dplyr</code> package makes this really easy:</p>
<aclass="sourceLine"id="cb15-25"data-line-number="25"><spanclass="co"># Table 01: Intrinsic resistance in Enterobacteriaceae (1,304 values changed)</span></a>
<aclass="sourceLine"id="cb15-25"data-line-number="25"><spanclass="co"># Table 01: Intrinsic resistance in Enterobacteriaceae (1,351 values changed)</span></a>
<aclass="sourceLine"id="cb15-26"data-line-number="26"><spanclass="co"># Table 02: Intrinsic resistance in non-fermentative Gram-negative bacteria (no changes)</span></a>
<aclass="sourceLine"id="cb15-26"data-line-number="26"><spanclass="co"># Table 02: Intrinsic resistance in non-fermentative Gram-negative bacteria (no changes)</span></a>
<aclass="sourceLine"id="cb15-27"data-line-number="27"><spanclass="co"># Table 03: Intrinsic resistance in other Gram-negative bacteria (no changes)</span></a>
<aclass="sourceLine"id="cb15-27"data-line-number="27"><spanclass="co"># Table 03: Intrinsic resistance in other Gram-negative bacteria (no changes)</span></a>
<aclass="sourceLine"id="cb15-29"data-line-number="29"><spanclass="co"># Table 08: Interpretive rules for B-lactam agents and Gram-positive cocci (no changes)</span></a>
<aclass="sourceLine"id="cb15-29"data-line-number="29"><spanclass="co"># Table 08: Interpretive rules for B-lactam agents and Gram-positive cocci (no changes)</span></a>
<aclass="sourceLine"id="cb15-30"data-line-number="30"><spanclass="co"># Table 09: Interpretive rules for B-lactam agents and Gram-negative rods (no changes)</span></a>
<aclass="sourceLine"id="cb15-30"data-line-number="30"><spanclass="co"># Table 09: Interpretive rules for B-lactam agents and Gram-negative rods (no changes)</span></a>
<aclass="sourceLine"id="cb15-31"data-line-number="31"><spanclass="co"># Table 11: Interpretive rules for macrolides, lincosamides, and streptogramins (no changes)</span></a>
<aclass="sourceLine"id="cb15-31"data-line-number="31"><spanclass="co"># Table 11: Interpretive rules for macrolides, lincosamides, and streptogramins (no changes)</span></a>
@ -453,24 +453,24 @@
<aclass="sourceLine"id="cb15-33"data-line-number="33"><spanclass="co"># Table 13: Interpretive rules for quinolones (no changes)</span></a>
<aclass="sourceLine"id="cb15-33"data-line-number="33"><spanclass="co"># Table 13: Interpretive rules for quinolones (no changes)</span></a>
<aclass="sourceLine"id="cb15-35"data-line-number="35"><spanclass="co"># Other rules</span></a>
<aclass="sourceLine"id="cb15-35"data-line-number="35"><spanclass="co"># Other rules</span></a>
<aclass="sourceLine"id="cb15-36"data-line-number="36"><spanclass="co"># Non-EUCAST: amoxicillin/clav acid = S where ampicillin = S (2,243 values changed)</span></a>
<aclass="sourceLine"id="cb15-36"data-line-number="36"><spanclass="co"># Non-EUCAST: amoxicillin/clav acid = S where ampicillin = S (2,150 values changed)</span></a>
<aclass="sourceLine"id="cb15-37"data-line-number="37"><spanclass="co"># Non-EUCAST: ampicillin = R where amoxicillin/clav acid = R (114 values changed)</span></a>
<aclass="sourceLine"id="cb15-37"data-line-number="37"><spanclass="co"># Non-EUCAST: ampicillin = R where amoxicillin/clav acid = R (105 values changed)</span></a>
<aclass="sourceLine"id="cb15-38"data-line-number="38"><spanclass="co"># Non-EUCAST: piperacillin = R where piperacillin/tazobactam = R (no changes)</span></a>
<aclass="sourceLine"id="cb15-38"data-line-number="38"><spanclass="co"># Non-EUCAST: piperacillin = R where piperacillin/tazobactam = R (no changes)</span></a>
<aclass="sourceLine"id="cb15-39"data-line-number="39"><spanclass="co"># Non-EUCAST: piperacillin/tazobactam = S where piperacillin = S (no changes)</span></a>
<aclass="sourceLine"id="cb15-39"data-line-number="39"><spanclass="co"># Non-EUCAST: piperacillin/tazobactam = S where piperacillin = S (no changes)</span></a>
<aclass="sourceLine"id="cb15-40"data-line-number="40"><spanclass="co"># Non-EUCAST: trimethoprim = R where trimethoprim/sulfa = R (no changes)</span></a>
<aclass="sourceLine"id="cb15-40"data-line-number="40"><spanclass="co"># Non-EUCAST: trimethoprim = R where trimethoprim/sulfa = R (no changes)</span></a>
<aclass="sourceLine"id="cb15-41"data-line-number="41"><spanclass="co"># Non-EUCAST: trimethoprim/sulfa = S where trimethoprim = S (no changes)</span></a>
<aclass="sourceLine"id="cb15-41"data-line-number="41"><spanclass="co"># Non-EUCAST: trimethoprim/sulfa = S where trimethoprim = S (no changes)</span></a>
<aclass="sourceLine"id="cb15-44"data-line-number="44"><spanclass="co"># EUCAST rules affected 6,571 out of 20,000 rows, making a total of 7,914 edits</span></a>
<aclass="sourceLine"id="cb15-44"data-line-number="44"><spanclass="co"># EUCAST rules affected 6,413 out of 20,000 rows, making a total of 7,715 edits</span></a>
<aclass="sourceLine"id="cb15-45"data-line-number="45"><spanclass="co"># => added 0 test results</span></a>
<aclass="sourceLine"id="cb15-45"data-line-number="45"><spanclass="co"># => added 0 test results</span></a>
<aclass="sourceLine"id="cb15-56"data-line-number="56"><spanclass="co"># Use eucast_rules(..., verbose = TRUE) (on your original data) to get a data.frame with all specified edits instead.</span></a></code></pre></div>
<aclass="sourceLine"id="cb15-56"data-line-number="56"><spanclass="co"># Use eucast_rules(..., verbose = TRUE) (on your original data) to get a data.frame with all specified edits instead.</span></a></code></pre></div>
@ -498,8 +498,8 @@
<aclass="sourceLine"id="cb17-3"data-line-number="3"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `bacteria` as input for `col_mo`.</span></a>
<aclass="sourceLine"id="cb17-3"data-line-number="3"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `bacteria` as input for `col_mo`.</span></a>
<aclass="sourceLine"id="cb17-4"data-line-number="4"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `date` as input for `col_date`.</span></a>
<aclass="sourceLine"id="cb17-4"data-line-number="4"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `date` as input for `col_date`.</span></a>
<aclass="sourceLine"id="cb17-5"data-line-number="5"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `patient_id` as input for `col_patient_id`.</span></a>
<aclass="sourceLine"id="cb17-5"data-line-number="5"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `patient_id` as input for `col_patient_id`.</span></a>
<aclass="sourceLine"id="cb17-6"data-line-number="6"><spanclass="co"># => Found 5,696 first isolates (28.5% of total)</span></a></code></pre></div>
<aclass="sourceLine"id="cb17-6"data-line-number="6"><spanclass="co"># => Found 5,682 first isolates (28.4% of total)</span></a></code></pre></div>
<p>So only 28.5% is suitable for resistance analysis! We can now filter on it with the <code><ahref="https://dplyr.tidyverse.org/reference/filter.html">filter()</a></code> function, also from the <code>dplyr</code> package:</p>
<p>So only 28.4% is suitable for resistance analysis! We can now filter on it with the <code><ahref="https://dplyr.tidyverse.org/reference/filter.html">filter()</a></code> function, also from the <code>dplyr</code> package:</p>
<p>For future use, the above two syntaxes can be shortened with the <code><ahref="../reference/first_isolate.html">filter_first_isolate()</a></code> function:</p>
<p>For future use, the above two syntaxes can be shortened with the <code><ahref="../reference/first_isolate.html">filter_first_isolate()</a></code> function:</p>
<p>We made a slight twist to the CLSI algorithm, to take into account the antimicrobial susceptibility profile. Have a look at all isolates of patient E8, sorted on date:</p>
<p>We made a slight twist to the CLSI algorithm, to take into account the antimicrobial susceptibility profile. Have a look at all isolates of patient A2, sorted on date:</p>
<tableclass="table">
<tableclass="table">
<thead><trclass="header">
<thead><trclass="header">
<thalign="center">isolate</th>
<thalign="center">isolate</th>
@ -525,19 +525,19 @@
<tbody>
<tbody>
<trclass="odd">
<trclass="odd">
<tdalign="center">1</td>
<tdalign="center">1</td>
<tdalign="center">2010-01-14</td>
<tdalign="center">2010-02-02</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">TRUE</td>
<tdalign="center">TRUE</td>
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">2</td>
<tdalign="center">2</td>
<tdalign="center">2010-03-24</td>
<tdalign="center">2010-02-28</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -547,8 +547,8 @@
</tr>
</tr>
<trclass="odd">
<trclass="odd">
<tdalign="center">3</td>
<tdalign="center">3</td>
<tdalign="center">2010-05-23</td>
<tdalign="center">2010-03-02</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -558,10 +558,10 @@
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">4</td>
<tdalign="center">4</td>
<tdalign="center">2010-08-30</td>
<tdalign="center">2010-03-08</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -569,8 +569,8 @@
</tr>
</tr>
<trclass="odd">
<trclass="odd">
<tdalign="center">5</td>
<tdalign="center">5</td>
<tdalign="center">2010-09-04</td>
<tdalign="center">2010-05-16</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
@ -580,10 +580,10 @@
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">6</td>
<tdalign="center">6</td>
<tdalign="center">2010-09-14</td>
<tdalign="center">2010-09-25</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -591,10 +591,10 @@
</tr>
</tr>
<trclass="odd">
<trclass="odd">
<tdalign="center">7</td>
<tdalign="center">7</td>
<tdalign="center">2010-10-02</td>
<tdalign="center">2011-01-03</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -602,32 +602,32 @@
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">8</td>
<tdalign="center">8</td>
<tdalign="center">2011-01-01</td>
<tdalign="center">2011-01-21</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">FALSE</td>
<tdalign="center">FALSE</td>
</tr>
</tr>
<trclass="odd">
<trclass="odd">
<tdalign="center">9</td>
<tdalign="center">9</td>
<tdalign="center">2011-02-10</td>
<tdalign="center">2011-05-24</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">TRUE</td>
<tdalign="center">TRUE</td>
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">10</td>
<tdalign="center">10</td>
<tdalign="center">2011-03-11</td>
<tdalign="center">2011-06-13</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -645,8 +645,8 @@
<aclass="sourceLine"id="cb20-6"data-line-number="6"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `date` as input for `col_date`.</span></a>
<aclass="sourceLine"id="cb20-6"data-line-number="6"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `date` as input for `col_date`.</span></a>
<aclass="sourceLine"id="cb20-7"data-line-number="7"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `patient_id` as input for `col_patient_id`.</span></a>
<aclass="sourceLine"id="cb20-7"data-line-number="7"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `patient_id` as input for `col_patient_id`.</span></a>
<aclass="sourceLine"id="cb20-8"data-line-number="8"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `keyab` as input for `col_keyantibiotics`. Use col_keyantibiotics = FALSE to prevent this.</span></a>
<aclass="sourceLine"id="cb20-8"data-line-number="8"><spanclass="co"># </span><spanclass="al">NOTE</span><spanclass="co">: Using column `keyab` as input for `col_keyantibiotics`. Use col_keyantibiotics = FALSE to prevent this.</span></a>
<aclass="sourceLine"id="cb20-9"data-line-number="9"><spanclass="co"># [Criterion] Inclusion based on key antibiotics, ignoring I.</span></a>
<aclass="sourceLine"id="cb20-9"data-line-number="9"><spanclass="co"># [Criterion] Inclusion based on key antibiotics, ignoring I</span></a>
<aclass="sourceLine"id="cb20-10"data-line-number="10"><spanclass="co"># => Found 15,087 first weighted isolates (75.4% of total)</span></a></code></pre></div>
<aclass="sourceLine"id="cb20-10"data-line-number="10"><spanclass="co"># => Found 15,216 first weighted isolates (76.1% of total)</span></a></code></pre></div>
<tableclass="table">
<tableclass="table">
<thead><trclass="header">
<thead><trclass="header">
<thalign="center">isolate</th>
<thalign="center">isolate</th>
@ -663,20 +663,20 @@
<tbody>
<tbody>
<trclass="odd">
<trclass="odd">
<tdalign="center">1</td>
<tdalign="center">1</td>
<tdalign="center">2010-01-14</td>
<tdalign="center">2010-02-02</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">TRUE</td>
<tdalign="center">TRUE</td>
<tdalign="center">TRUE</td>
<tdalign="center">TRUE</td>
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">2</td>
<tdalign="center">2</td>
<tdalign="center">2010-03-24</td>
<tdalign="center">2010-02-28</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -687,8 +687,8 @@
</tr>
</tr>
<trclass="odd">
<trclass="odd">
<tdalign="center">3</td>
<tdalign="center">3</td>
<tdalign="center">2010-05-23</td>
<tdalign="center">2010-03-02</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -699,20 +699,20 @@
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">4</td>
<tdalign="center">4</td>
<tdalign="center">2010-08-30</td>
<tdalign="center">2010-03-08</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">FALSE</td>
<tdalign="center">FALSE</td>
<tdalign="center">FALSE</td>
<tdalign="center">TRUE</td>
</tr>
</tr>
<trclass="odd">
<trclass="odd">
<tdalign="center">5</td>
<tdalign="center">5</td>
<tdalign="center">2010-09-04</td>
<tdalign="center">2010-05-16</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
@ -723,10 +723,10 @@
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">6</td>
<tdalign="center">6</td>
<tdalign="center">2010-09-14</td>
<tdalign="center">2010-09-25</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -735,10 +735,10 @@
</tr>
</tr>
<trclass="odd">
<trclass="odd">
<tdalign="center">7</td>
<tdalign="center">7</td>
<tdalign="center">2010-10-02</td>
<tdalign="center">2011-01-03</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
@ -747,11 +747,11 @@
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">8</td>
<tdalign="center">8</td>
<tdalign="center">2011-01-01</td>
<tdalign="center">2011-01-21</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">FALSE</td>
<tdalign="center">FALSE</td>
@ -759,35 +759,35 @@
</tr>
</tr>
<trclass="odd">
<trclass="odd">
<tdalign="center">9</td>
<tdalign="center">9</td>
<tdalign="center">2011-02-10</td>
<tdalign="center">2011-05-24</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">TRUE</td>
<tdalign="center">TRUE</td>
<tdalign="center">TRUE</td>
<tdalign="center">TRUE</td>
</tr>
</tr>
<trclass="even">
<trclass="even">
<tdalign="center">10</td>
<tdalign="center">10</td>
<tdalign="center">2011-03-11</td>
<tdalign="center">2011-06-13</td>
<tdalign="center">E8</td>
<tdalign="center">A2</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">B_ESCHR_COLI</td>
<tdalign="center">S</td>
<tdalign="center">R</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">S</td>
<tdalign="center">FALSE</td>
<tdalign="center">FALSE</td>
<tdalign="center">FALSE</td>
<tdalign="center">TRUE</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<p>Instead of 2, now 7 isolates are flagged. In total, 75.4% of all isolates are marked ‘first weighted’ - 47.0% more than when using the CLSI guideline. In real life, this novel algorithm will yield 5-10% more isolates than the classic CLSI guideline.</p>
<p>Instead of 2, now 9 isolates are flagged. In total, 76.1% of all isolates are marked ‘first weighted’ - 47.7% more than when using the CLSI guideline. In real life, this novel algorithm will yield 5-10% more isolates than the classic CLSI guideline.</p>
<p>As with <code><ahref="../reference/first_isolate.html">filter_first_isolate()</a></code>, there’s a shortcut for this new algorithm too:</p>
<p>As with <code><ahref="../reference/first_isolate.html">filter_first_isolate()</a></code>, there’s a shortcut for this new algorithm too:</p>
<p>The functions <code><ahref="../reference/portion.html">portion_S()</a></code>, <code><ahref="../reference/portion.html">portion_SI()</a></code>, <code><ahref="../reference/portion.html">portion_I()</a></code>, <code><ahref="../reference/portion.html">portion_IR()</a></code> and <code><ahref="../reference/portion.html">portion_R()</a></code> can be used to determine the portion of a specific antimicrobial outcome. As per the EUCAST guideline of 2019, we calculate resistance as the portion of R (<code><ahref="../reference/portion.html">portion_R()</a></code>) and susceptibility as the portion of S and I (<code><ahref="../reference/portion.html">portion_SI()</a></code>). These functions can be used on their own:</p>
<p>The functions <code><ahref="../reference/portion.html">portion_S()</a></code>, <code><ahref="../reference/portion.html">portion_SI()</a></code>, <code><ahref="../reference/portion.html">portion_I()</a></code>, <code><ahref="../reference/portion.html">portion_IR()</a></code> and <code><ahref="../reference/portion.html">portion_R()</a></code> can be used to determine the portion of a specific antimicrobial outcome. As per the EUCAST guideline of 2019, we calculate resistance as the portion of R (<code><ahref="../reference/portion.html">portion_R()</a></code>) and susceptibility as the portion of S and I (<code><ahref="../reference/portion.html">portion_SI()</a></code>). These functions can be used on their own:</p>
<p>Or can be used in conjuction with <code><ahref="https://dplyr.tidyverse.org/reference/group_by.html">group_by()</a></code> and <code><ahref="https://dplyr.tidyverse.org/reference/summarise.html">summarise()</a></code>, both from the <code>dplyr</code> package:</p>
<p>Or can be used in conjuction with <code><ahref="https://dplyr.tidyverse.org/reference/group_by.html">group_by()</a></code> and <code><ahref="https://dplyr.tidyverse.org/reference/summarise.html">summarise()</a></code>, both from the <code>dplyr</code> package:</p>
So only `r clean:::percentage(sum(data$first) / nrow(data))` is suitable for resistance analysis! We can now filter on it with the `filter()` function, also from the `dplyr` package:
So only `r percentage(sum(data$first) / nrow(data))` is suitable for resistance analysis! We can now filter on it with the `filter()` function, also from the `dplyr` package:
```{r 1st isolate filter}
```{r 1st isolate filter}
data_1st <- data %>%
data_1st <- data %>%
@ -272,7 +272,7 @@ weighted_df2 %>%
knitr::kable(align = "c")
knitr::kable(align = "c")
```
```
Instead of `r sum(weighted_df$first)`, now `r sum(weighted_df2$first_weighted)` isolates are flagged. In total, `r clean:::percentage(sum(data$first_weighted) / nrow(data))` of all isolates are marked 'first weighted' - `r clean:::percentage((sum(data$first_weighted) / nrow(data)) - (sum(data$first) / nrow(data)))` more than when using the CLSI guideline. In real life, this novel algorithm will yield 5-10% more isolates than the classic CLSI guideline.
Instead of `r sum(weighted_df$first)`, now `r sum(weighted_df2$first_weighted)` isolates are flagged. In total, `r percentage(sum(data$first_weighted) / nrow(data))` of all isolates are marked 'first weighted' - `r percentage((sum(data$first_weighted) / nrow(data)) - (sum(data$first) / nrow(data)))` more than when using the CLSI guideline. In real life, this novel algorithm will yield 5-10% more isolates than the classic CLSI guideline.
As with `filter_first_isolate()`, there's a shortcut for this new algorithm too:
As with `filter_first_isolate()`, there's a shortcut for this new algorithm too:
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.