Hello, How can I do a cross validation in R? Thank You!
http://www.burns-stat.com/pages/Tutor/bootstrap_resampling.html may be of some use to you. Patrick Burns patrick at burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") Carla Rebelo wrote:>Hello, > >How can I do a cross validation in R? > >Thank You! > >______________________________________________ >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. > > > >
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? -- View this message in context: http://www.nabble.com/Cross-Validation-tp15912818p15912818.html Sent from the R help mailing list archive at Nabble.com.
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? > > >-- View this message in context: http://www.nabble.com/Cross-Validation-tp15912818p15912852.html Sent from the R help mailing list archive at Nabble.com.
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? > > >-- View this message in context: http://www.nabble.com/Cross-Validation-tp15912818p15912854.html Sent from the R help mailing list archive at Nabble.com.
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? > > >-- View this message in context: http://www.nabble.com/Cross-Validation-tp15912818p15912856.html Sent from the R help mailing list archive at Nabble.com.
Hi, I must have accidentally deleted my previous post. I am having a really difficult time calculating the LOOCV (leave out cross validation). table in excel genes ALL AML p.value 1 1.2 .3 .01 2 .87 .3 .03 3 1.1 .5 .05 4 1.2 .7 .01 5 3.2 1.2 .02 6 1.1 1.1 .5 Do i need to import them into R as a matrix? Is there any script available where i can calculate the LOOCV? thanks, John -- View this message in context: http://www.nabble.com/cross-validation-tp15913006p15913006.html Sent from the R help mailing list archive at Nabble.com.
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