Skip to content
Prev 42436 / 398506 Next

lda() called with data=subset() command

I presume is lda from the uncredited package MASS and you ignored the
advice to ask the maintainer?

The short answer is `don't ignore the warning', and set up a proper data 
frame with just the groups you actually want.

As a quick fix, look in lda.default and alter the line that looks like

        cl <- factor(max.col(dist), levels=seq(along=lev1), labels=lev1)

to be exactly like that.  (You will need fixInNamespace to do so.)
On Mon, 5 Jan 2004, Christoph Lehmann wrote: