rpart
package (Therneau et. al. 2010). It basically, integrates
the tree growth and tree post-pruning in a single function call. The
post-pruning phase is essentially the 1-SE rule described in the CART
book (Breiman et. al. 1984).
rpartXse(form, data, se = 1, cp = 0, minsplit = 6, verbose = F, ...)
rpart()
function
rpart
object
Torgo, L. (2010) Data Mining using R: learning with case studies, CRC Press (ISBN: 9781439810187).
rt.prune
, rpart
, prune.rpart
data(iris)
tree <- rpartXse(Species ~ ., iris)
tree
## A visual representation of the classification tree
## Not run:
# prettyTree(tree)
# ## End(Not run)
Run the code above in your browser using DataLab