><a href="#cb10-26"></a><span class="st">  </span><span class="co"># Fit the model</span></span>
<span id="cb10-27"><a href="#cb10-27"></a><span class="st">  </span><span class="kw">fit</span>(Class <span class="op">~</span><span class="st"> </span>., <span class="dt">data =</span> breast)</span></code></pre></div>
<p>The next step would be to expose <code>fitted_logistic_model$fit</code> list item. The fit parameter produces the same output as we would expect from the CARET packageâ€™s <code>finalMode