Fiona Callaghan wrote: > I was wondering if someone could help me with an rpart problem. I can see > that cross-validation is the default for tree selection in rpart -- has a > bootstrap method been implemented anywhere? I think this is a different > thing to 'bagging' or 'boosting' -- I still want 'one' tree at the end, I > just would like it chosen using a bootstrap method. Any ideas???
Hi Fiona, I'm not sure if I understand you correctly. To get one single rpart tree trained on one bootstrap sample, try bagging() from the 'ipred' package and set nbagg=1. Bye, Chris ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.