Re: [R] lda (MASS)

From: Christoph Lehmann <christoph.lehmann_at_gmx.ch>
Date: Thu 21 Apr 2005 - 23:27:16 EST

> 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@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
>
>



R-help@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 Received on Thu Apr 21 22:44:12 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:21 EST