function that calculate the missclassification error assuming that we are in the node

conditional_error(node, tree)

Arguments

node

the number of the node in the tree tree.

tree

a tree. A data frame returned by the function CARTGV and which summarizes the resulted CARTGV tree.

Value

cond_err: an numeric indicating the missclassification error assuming that we are in the node.