v class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1"></a><span class="kw">library</span>(caret)</span>
<span id="cb5-2"><a href="#cb5-2"></a>glm_model &lt;-<span class="st"> </span><span class="kw">train</span>(Class <span class="op">~</span><span class="st"> </span>.,</span>
<span id="cb5-3"><a href="#cb5-3"></a>                   <span class="dt">data =</span> breast,</span>
<span id="cb5-4"><a href="#cb5-4"></a>                   <span class