prune_se | R Documentation |
rpart
objectPrune an rpart
object using the standard error (SE) of the
cross-validation results.
prune_se(object, prune = TRUE, se = 1)
object |
An object that inherits from class |
prune |
Logical indicating whether or not to return the pruned decision
tree. Default is |
se |
Numeric specifying the number of standard errors to use when
pruning the tree. Default is |
Either an object that inherits from class "rpart"
(ideally,
one that's been simplified using cost-complexity pruning with the 1-SE rule)
or a numeric value representing the cost-complexity parameter to use for
pruning.
Breiman, L., Friedman, J., and Charles J. Stone, R. A. O. (1984). Classification and Regression Trees. The Wadsworth and Brooks-Cole statistics-probability series. Taylor & Francis.
prune
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.