Description Usage Arguments Details Value Author(s) References See Also
Prediction of test data using random forest.
1 2 3 4 |
object |
an object of class |
newdata |
a data frame or matrix containing new data.
(Note: If not given, the out-of-bag prediction in |
offset |
a vector with a length equal to the number of rows in |
type |
To be removed, or score scale vs. response scale ? |
norm.votes |
not used |
predict.all |
Should the predictions of all trees be kept? |
proximity |
To be removed |
nodes |
Should the terminal node indicators (an n by ntree matrix) be return? If so, it is in the 'nodes' attribute of the returned object. |
cutoff |
To be removed |
... |
Currently not used |
predict.rfCountData
A vector of predicted values is returned.
If predict.all=TRUE
, then the returned object is a list of two components: aggregate
,
which is the vector of predicted values by the forest, and individual
, which
is a matrix where each column contains prediction by a tree in the forest.
If predict.all=TRUE
, then the individual
component of thereturned object is a
character matrix where each column contains the predicted class by a tree in the forest.
If nodes=TRUE
, the returned object has a 'nodes' attribute, which is an n by ntree matrix,
each column containing the node number that the cases fall in for that tree.
Andy Liaw andy_liaw@merck.com and Matthew Wiener matthew_wiener@merck.com, based on original Fortran code by Leo Breiman and Adele Cutler.
Breiman, L. (2001), Random Forests, Machine Learning 45(1),5-32.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.