<metaproperty="og:description"content="These functions can be used for generating random MIC values and disk diffusion diameters, for AMR data analysis practice. By providing a microorganism and antimicrobial agent, the generated results will reflect reality as much as possible."/>
<p>These functions can be used for generating random MIC values and disk diffusion diameters, for AMR data analysis practice. By providing a microorganism and antimicrobial agent, the generated results will reflect reality as much as possible.</p>
<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>stable</strong>. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.</p>
<p>If the unlying code needs breaking changes, they will occur gradually. For example, a argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.</p>
<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 data 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 8-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 11-17</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 12-27</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>