title: The train function in R caret package
body: <p>Suppose I have a data set and I want to do a 4-fold cross validation using logistic regression. So there will be 4 different models. In R, I did the following:</p>
  
  <pre><code>ctrl &lt;- trainControl(method = "repeatedcv", number = 4, savePredictions = TRUE)
  mod_fit &lt;- train(outcome ~., data=data1, method = "glm", family="binomial", trControl = ctrl)
  </code></pre>
  
  <p>I would assume that <code> mod_fit </code> should contain 4 separate sets of coefficients? When I type <code> modfit$finalModel$ </code> I just get the same set of coefficients. </p>