[R] lda

From: Pieter Vermeesch <pieter.vermeesch_at_erdw.ethz.ch>
Date: Mon 16 Oct 2006 - 17:15:59 GMT

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?



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 and provide commented, minimal, self-contained, reproducible code. Received on Tue Oct 17 04:22:58 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 17 Oct 2006 - 07:30:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.