Predicts values for numeric outcomes and group membership for categories based on newdata
and a fitted RandomForest object
. A value (which may be NA) is returned for every instance
including those with missing data and for the fitted data
before filtering in the case
that newdata
is not specified. NA is returned for cases with unfitted factor levels.
1 2 3 |
object |
A |
newdata |
Optionally, a data frame including the variables used to fit the model.
If omitted, the |
na.action |
Function determining what should be done with missing values in |
... |
Additional arguments to pass to predict.RandomForest. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.