method
a string specifying which classification model to use. Possible values are: lm, rda, lda, gbm, rf,  nnet, multinom, gpls, lvq, rpart
data
the training data (only needed in the case where the method is cforest, earth, bagEarth, fda, bagFDA, rpart,  rf or  pls.