/span><span class="fu"><a href="https://rdrr.io/r/stats/Uniform.html" class="external-link">runif</a></span><span class="op">(</span>n<span class="op">=</span><span class="fl">500</span><span class="op">)</span> <span class="op">&lt;</span> <span class="fl">0.5</span>, <span class="va">sim_dat</span><span class="op">$</span><span class="va">x1</span>, <span class="cn">NA</span><span class="op">)</span></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># perform multiple imputation</span>