Description Usage Arguments Value
View source: R/predict.rforest.R
This function obtains predictions from a random forest based on aggregating
the predictions from individual rpart
trees. A majority vote is
taken for binary classification trees, while the predictions are averaged for
normal, poisson, gamma and lognormal regression trees.
1 2 | ## S3 method for class 'rforest'
predict(object, newdata)
|
object |
fitted model object from the class |
newdata |
data frame containing the observations to predict. This
argument can only be missing when the random forest in |
numeric vector with the averaged predictions (for regression) or the majority vote (for classification) of the individual trees.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.