Arguments
formula
A formula expression for the classifier model. Expects the form outcome ~ predictors with a single outcome variable. The outcome variable is expected to be of type character.
data
A data frame consisting of the training data set. Must include all variables described in the formula including the outcome variable.
test
A data frame consisting of the test set to be predicted. Must include all predictor variables. May include outcome variable.
m
Number of classifiers to vote on final prediction. Defaults to 5.
trace
Setting for randomForest do.trace. Defaults to TRUE.
ntree
Number of trees for each randomForest to grow. Defaults to 500.
mtry
Number of variables randomForest randomly samples as candidates at each split. Defaults to the square root of the number of variables in data.