Description Usage Arguments Details Value Author(s) See Also Examples
Return the frequencies of correct and wrong classifications in given node(s) in tabular form. The 'purity', denoting the relative frequency of correctly classified elements, is a useful information for the interpretation of regression and classification trees and a measure for its quality.
1 2 3 4 5 |
x |
fitted model object of class |
col |
color for the bars in the plot |
which |
one out of |
layout |
vector defining the layout |
ylim |
the y limits of the plot. |
... |
further arguments (not used). |
The result comprises absolute and relative frequencies per leaf.
A list with 5 elements consisting of:
node |
the node id (of the leaf) |
freq |
the absolute frequency of correct and wrong classifications |
p.row |
the relative frequency of correct and wrong classifications |
mfreq |
the total number of cases |
mperc |
the percentage of the sample in the leaf |
Andri Signorell <andri@signorell.net>
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.