Description Usage Arguments Value Author(s) See Also Examples

Compute or plot the margin of predictions from a randomForest classifier.

1 2 3 4 5 6 |

`x` |
an object of class |

`observed` |
the true response corresponding to the data in |

`sort` |
Should the data be sorted by their class labels? |

`...` |
other graphical parameters to be passed to |

For `margin`

, the *margin* of observations from the
`randomForest`

classifier (or whatever classifier that
produced the predicted probability matrix given to `margin`

).
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.

Robert Gentlemen, with slight modifications by Andy Liaw

1 2 3 4 |

```
randomForest 4.6-12
Type rfNews() to see new features/changes/bug fixes.
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.