pan>    <span class="op">)</span></span>
<span>    <span class="kw"><a href="https://rdrr.io/r/base/function.html" class="external-link">return</a></span><span class="op">(</span><span class="va">res</span><span class="op">)</span></span>
<span><span class="op">}</span></span></code></pre></div>
<div class="section level2">
<h2 id="step-1-impute-missing-data">STEP 1: Impute missing data<a class="anchor" aria-label="anchor" href="#step-1-impute-missing-data"></a>
</h2>
<div class="sourceCode" id="cb4"><pre c