compareTreecalcs(x = yesno ~ ., data = spam7, cp = 0.00025,
fun = c("rpart", "randomForest"))cp,
used by rpart()rpart is specified in fun, the following:rpart() is run on the training data (I), and the
one-standard error rule is usedrpart() is run on subset I, and the model used that
gives the minimum cross-validated error raterpSEcvI
is used to make predictions for subset IIrpcvI
is used to make predictions for subset IIrpart is specified in fun, the following:randomForest() is run on subset IrfcvI
is used to make predictions for subset II