Description Usage Arguments Value Examples
Runs a random forest with user specified splitting criteria
using the forestr
function.
1 2 3 4 |
formula, x |
formula specification of forest variables,
(for the |
data |
dataframe with y and x variables |
mvars |
number of variables to sample in each node of the tree during building the random forest |
B |
number of bootstrap samples |
min_size |
minimum size of a terminal node |
method |
optional splitting method, currently |
... |
extra parameters to pass to rpart |
An object of class forestr
with components
call |
the original call to |
type |
one of |
predicted |
the predicted values of the input data based on out of bag samples |
importance |
mean decrease in accurace over all classes for each variable in the model |
votes |
matrix giving the votes for each class on each observation (classification) |
oob |
out of bag error for the model including confusion matrix (classification) |
trees |
random forest tree objects |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.