
Last chance! 50% off unlimited learning
Sale ends in
rpart
object.
plotcp(x, minline = TRUE, lty = 3, col = 1, upper = c("size", "splits", "none"), ...)
"rpart"
cp
for which
a pruning is optimal, a cross-validation has (usually) been done in
the initial construction by rpart
. The cptable
in the fit contains
the mean and standard deviation of the errors in the cross-validated
prediction against each of the geometric means, and these are plotted
by this function. A good choice of cp
for pruning is often the
leftmost value for which the mean lies below the horizontal line.
rpart
, printcp
, rpart.object