[R] lda

Pieter Vermeesch pieter.vermeesch at erdw.ethz.ch
Mon Oct 16 19:15:59 CEST 2006


I'm trying to do a linear discriminant analysis on a dataset of three
classes ("Affinities"), using the MASS library:

> data.frame2 <- na.omit(data.frame1)
>
> data.ld = lda(AFFINITY ~ ., data.frame2, prior = c(1,1,1)/3)

Error in var(x - group.means[g, ]) : missing observations in cov/cor

What does this error message mean and how can I get rid of it?

Thanks!

Pieter



More information about the R-help mailing list