Margins of randomForest Classifier
Description
Compute or plot the margin of predictions from a randomForest classifier.
Usage
1 2 3 
Arguments
rf 
an object of class 
observed 
the response variable (a factor) used to train

x 
an object of class 
sort 
Should the data be sorted by their class labels? 
... 
other graphical parameters to be passed to 
Value
For margin
, the margin of observations from the
randomForest
classifier. The margin of a data point is defined as the
proportion of votes for the correct class minus maximum proportion of
votes for the other classes. Thus under majority votes, positive
margin means correct classification, and vice versa.
Author(s)
Robert Gentlemen, with slight modifications by Andy Liaw
See Also
randomForest
Examples
1 2 3 4 