Skip to content
Prev 347782 / 398500 Next

xerror and xstd are missing from cptable of the Rpart package

Kim,

The "x" in "xerror" and "xstd" stands for cross validation.  But you have
specified no cross validations, xval=0.

Try:

model <- rpart(Product ~ ., data=trainData, control=rpart.control(minsplit=50,
cp=0.002))
model$cptable

Jean
On Tue, Feb 3, 2015 at 7:09 AM, Kim C. <minorthreatx at hotmail.com> wrote: