| misclass.tree | R Documentation |
Report the number of mis-classifications made by a classification tree, either overall or at each node.
misclass.tree(tree, detail = FALSE)
tree |
Object of class |
detail |
If false, report overall number of mis-classifications. If true, report the number at each node. |
The quantities returned are weighted by the observational weights if
these are supplied in the construction of tree.
Either the overall number of misclassifications or the number for each node.
B. D. Ripley
tree
ir.tr <- tree(Species ~., iris)
misclass.tree(ir.tr)
misclass.tree(ir.tr, detail=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.