Re: [R] Cross-validation error with tune and with rpart

2011-12-31 Thread Prof Brian Ripley
On 31/12/2011 12:34, Israel Saeta Pérez wrote: Hello list, I'm trying to generate classifiers for a certain task using several methods, one of them being decision trees. The doubts come when I want to estimate the cross-validation error of the generated tree: tree<- rpart(y~., data=data.frame(x

[R] Cross-validation error with tune and with rpart

2011-12-31 Thread Israel Saeta Pérez
Hello list, I'm trying to generate classifiers for a certain task using several methods, one of them being decision trees. The doubts come when I want to estimate the cross-validation error of the generated tree: tree <- rpart(y~., data=data.frame(xsel, y), cp=0.1) ptree <- prune(tree, cp=tre