[R] Cross Validation

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Mar 8 19:31:01 CET 2008



JStainer wrote:
> an example from my R table will calculating the average LOOCV for two
> treatments ALL and AML
>     
> table
>       ALL   AML
> 1    1.2     .3
> 2    .87    .3
> 3    1.1    .5
> 4    1.2    .7
> 5    3.2    1.2
> 6    1.1    1.1
> 7    .90     .99
> 8    1.1    .32
> 9    2.1     1.2
> 
> 
> 
> 
> 
> 
> JStainer wrote:
>> Hi,
>>
>> I am trying to find out the best way to calculate the average LOOCV in R
>> for several classifier for, KNN, centroid classification, DLDA and SVM.
>>
>> I have four types of diseases and 62 samples. 
>>
>> Is there a R code available to do this?



See ?errorest in package ipred, for example.

Uwe Ligges



More information about the R-help mailing list