[R] lda (MASS)

Christoph Lehmann christoph.lehmann at gmx.ch
Thu Apr 21 15:27:16 CEST 2005


> Now, I use my "real" dataset (900 instances, 21 attributes), which 2 classes
> can be serparated with accuracy no more than 80% (10xval) with KNN, SVM, C4.5
> and the like. 
I thinks these accuracies are based on cross-validation runs. Whereas
the 80% accuracy you report using LDA is not based on cross-validation
runs as long as CV is not set to TRUE.
> PS: and does anybody know how to use the CV option of lda to make xval?
> I can't get it.

z <- lda(Sp ~ ., Iris, CV = TRUE)
table(Iris$Sp, z$class)

cheers
christoph




> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list