Hi Chysanthi,
check out the randomForest package, with the function randomForest. It has a CV
option. Sorry for not providing you with a lengthier response at the moment but
I'm rather busy on a project. Let me know if you need more help.
Also, to split your data into two parts- the training
you need to include in your code something like:
tree-rpart(result~., data, control=rpart.control(xval=10)).
this xval=10 is 10-fold CV.
Best,
Pierre
De : Chrysanthi A. chrys...@gmail.com
À : r-help@r-project.org
Envoyé le : Dimanche, 12 Avril 2009, 17h26mn
Hi Pierre,
Thanks a lot for your help..
So, using that script, I just separate my data in two parts, right? For
using as training set the 70 % of the data and the rest as test, should I
multiply the n with the 0.70 (for this case)?
Many thanks,
Chrysanthi
2009/4/12 Pierre Moffard
3 matches
Mail list logo