</span><span class="op">)</span></pre></div>
<p>Generate simulated data.</p>
<div class="sourceCode" id="cb3"><pre class="downlit">
<span class="va">latent</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/GammaDist.html">rgamma</a></span><span class="op">(</span><span class="fl">8000</span>, <span class="fl">0.3</span><span class="op">)</span>
<span class="va">latent2</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/GammaDist.html">