e> as follows:</p>
<p>We have set <code>nfolds</code> to 3 for computational reasons; it
should generally be higher, such as 10.</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>subgrp.model <span class="ot">&lt;-</span> <span class="fu">fit.subgroup</span>(<span class="at">x =</span> x, <span class="at">y =</span> y,</span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>  