[R] Help,Suggest me some methods to identify training set and test set!!!

Frank E Harrell Jr f.harrell at vanderbilt.edu
Mon Dec 21 22:15:16 CET 2009


Ot should be noted that the performance of single split into training + 
test does not perform satisfactorily unless N > 10,000 in many cases.

Frank

Max Kuhn wrote:
>> I noticed Max already pointed you to the caret package.
>>
>> Load the library and look at the help for the createFolds function, eg:
>>
>> library(caret)
>> ?createFolds
> 
> I think that the createDataPartition function in caret might work
> better for you.
> 
> There are a number of other packages with similar functions.
> 
> Max
> 
> ______________________________________________
> R-help at r-project.org 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.
> 


-- 
Frank E Harrell Jr   Professor and Chairman        School of Medicine
                      Department of Biostatistics   Vanderbilt University




More information about the R-help mailing list