#------10-fold crossvalidation error using the LDA classifier---
data(bupa)
crossval(bupa,method="lda",repet=10)
## Not run: #------5-fold crossvalidation error using the knn classifier---
# data(colon)
# crossval(colon,nparts=5,method="knn",kvec=3,repet=5)
# ## End(Not run)
Run the code above in your browser using DataLab