Description Usage Arguments Value
function that calculate the misclassification error of the subtree stremming from node
penalized by alpha
1 | cost_error(node, tree, alpha)
|
node |
the number of the node in the tree |
tree |
a tree. A data frame returned by the function |
alpha |
a positive real. It is the value of the complexity paramter in the cost-complexity criterion. |
a numeric indicating the misclassification error of the subtree stremming from node penalized by alpha.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.