<metaproperty="og:title"content="Random MIC values/disk zones/RSI generation — random"/>
<metaproperty="og:description"content="These functions can be used for generating random MIC values and disk diffusion diameters, for AMR analysis practice."/>
<p>These functions can be used for generating random MIC values and disk diffusion diameters, for AMR analysis practice.</p>
</div>
<preclass="usage"><spanclass='fu'>random_mic</span><spanclass='op'>(</span><spanclass='va'>size</span>, mo <spanclass='op'>=</span><spanclass='cn'>NULL</span>, ab <spanclass='op'>=</span><spanclass='cn'>NULL</span>, <spanclass='va'>...</span><spanclass='op'>)</span>
<spanclass='fu'>random_disk</span><spanclass='op'>(</span><spanclass='va'>size</span>, mo <spanclass='op'>=</span><spanclass='cn'>NULL</span>, ab <spanclass='op'>=</span><spanclass='cn'>NULL</span>, <spanclass='va'>...</span><spanclass='op'>)</span>
<p>class <code><mic></code> for <code>random_mic()</code> (see <code><ahref='as.mic.html'>as.mic()</a></code>) and class <code><disk></code> for <code>random_disk()</code> (see <code><ahref='as.disk.html'>as.disk()</a></code>)</p>
<p>Generated values are based on the latest EUCAST guideline implemented in the <ahref='rsi_translation.html'>rsi_translation</a> data set. To create specific generated values per bug or drug, set the <code>mo</code> and/or <code>ab</code> argument.</p>
The <ahref='lifecycle.html'>lifecycle</a> of this function is <strong>maturing</strong>. The unlying code of a maturing function has been roughed out, but finer details might still change. Since this function needs wider usage and more extensive testing, you are very welcome <ahref='https://github.com/msberends/AMR/issues'>to suggest changes at our repository</a> or <ahref='AMR.html'>write us an email (see section 'Contact Us')</a>.</p>
<h2class="hasAnchor"id="read-more-on-our-website-"><aclass="anchor"href="#read-more-on-our-website-"></a>Read more on our website!</h2>
<p>On our website <ahref='https://msberends.github.io/AMR/'>https://msberends.github.io/AMR/</a> you can find <ahref='https://msberends.github.io/AMR/articles/AMR.html'>a comprehensive tutorial</a> about how to conduct AMR analysis, the <ahref='https://msberends.github.io/AMR/reference/'>complete documentation of all functions</a> and <ahref='https://msberends.github.io/AMR/articles/WHONET.html'>an example analysis using WHONET data</a>. As we would like to better understand the backgrounds and needs of our users, please <ahref='https://msberends.github.io/AMR/survey.html'>participate in our survey</a>!</p>
<spanclass='co'># make the random generation more realistic by setting a bug and/or drug:</span>
<spanclass='fu'>random_mic</span><spanclass='op'>(</span><spanclass='fl'>100</span>, <spanclass='st'>"Klebsiella pneumoniae"</span><spanclass='op'>)</span><spanclass='co'># range 0.0625-64</span>
<spanclass='fu'>random_mic</span><spanclass='op'>(</span><spanclass='fl'>100</span>, <spanclass='st'>"Klebsiella pneumoniae"</span>, <spanclass='st'>"meropenem"</span><spanclass='op'>)</span><spanclass='co'># range 0.0625-16</span>
<spanclass='fu'>random_mic</span><spanclass='op'>(</span><spanclass='fl'>100</span>, <spanclass='st'>"Streptococcus pneumoniae"</span>, <spanclass='st'>"meropenem"</span><spanclass='op'>)</span><spanclass='co'># range 0.0625-4</span>
<spanclass='fu'>random_disk</span><spanclass='op'>(</span><spanclass='fl'>100</span>, <spanclass='st'>"Klebsiella pneumoniae"</span><spanclass='op'>)</span><spanclass='co'># range 11-50</span>
<spanclass='fu'>random_disk</span><spanclass='op'>(</span><spanclass='fl'>100</span>, <spanclass='st'>"Klebsiella pneumoniae"</span>, <spanclass='st'>"ampicillin"</span><spanclass='op'>)</span><spanclass='co'># range 6-14</span>
<spanclass='fu'>random_disk</span><spanclass='op'>(</span><spanclass='fl'>100</span>, <spanclass='st'>"Streptococcus pneumoniae"</span>, <spanclass='st'>"ampicillin"</span><spanclass='op'>)</span><spanclass='co'># range 16-22</span>
<p>Developed by <ahref='https://www.rug.nl/staff/m.s.berends/'>Matthijs S. Berends</a>, <ahref='https://www.rug.nl/staff/c.f.luz/'>Christian F. Luz</a>, <ahref='https://www.rug.nl/staff/a.w.friedrich/'>Alexander W. Friedrich</a>, <ahref='https://www.rug.nl/staff/b.sinha/'>Bhanu N. M. Sinha</a>, <ahref='https://www.rug.nl/staff/c.j.albers/'>Casper J. Albers</a>, <ahref='https://www.rug.nl/staff/c.glasner/'>Corinna Glasner</a>.</p>
<p>Made with <ahref="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1, using <ahref="https://preferably.amirmasoudabdol.name/?source=footer">preferably</a> template.</p>