Report Numbers of Misclassifications by a Classification Tree
Usage
misclass.tree(tree, detail=F)
Arguments
tree
|
Object of class "tree" , representing a
classification tree.
|
detail
|
If false, report overall number of
mis-classifications. If true, report the number of each node.
|
Description
Report the number of mis-classifications made by a classification
tree, either overall or at each node.Details
The quantities returned are weighted by the observational weights if
these are supplied in the construction of tree
.Value
Either the overall number of misclassifications or the number for each node.Author(s)
B.D. RipleySee Also
tree
Examples
data(iris)
ir.tr <- tree(Species ~., iris)
misclass.tree(ir.tr)
misclass.tree(ir.tr, detail=T)