Function that calculate the misclassification error of the subtree stremming from node
node_error(node, tree)
node | the number of the node in the tree |
---|---|
tree | a tree. A data frame returned by the function |
a numeric indicating the misclassification error of the subtree stremming from node.