Pieter Vermeesch wrote: > 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?
What does str(data.frame2) tell us? Uwe Ligges > Thanks! > > Pieter > > ______________________________________________ > 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. ______________________________________________ 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.