# Evaluate the performance of traditional (Fisher's) linear discriminant
# analysis on the iris data set, by ten-fold cross-validation replicated
# three times.
library(MASS)
CrosValRes1 <- DACrossVal(iris[1:4],iris$Species,TrainAlg=lda,CVrep=3)
summary(CrosValRes1[,,"Clerr"])
# Evaluate the performance on Alon's Colon Cancer Data set, of a
# one-factor linear discriminant rule after variable selection
# by the Extended HC scheme, by five-fold cross-validation.
CrosValRes2 <- DACrossVal(AlonDS[,-1],AlonDS[,1],TrainAlg=RFlda,
kfold=5,CVrep=1)
summary(CrosValRes2[,,"Clerr"])Run the code above in your browser using DataLab