Skip to content
Prev 30469 / 398513 Next

multiple numerical variables in aov

On Fri, 11 Apr 2003, [iso-8859-1] Rishabh Gupta wrote:

            
help(aov) does say that the formula can specify multiple responses,
though admittedly it doesn't explain how.  You use

       aov(cbind(v1,v2,v3)~g)

However, if you want to find out about whether these variables
collectively discriminate this will not be the right way. You want
something like lda() in the MASS package.
They are both of excellent quality :). They do completely different
things. As their respective help pages say

 Compute analysis of variance (or deviance) tables for one or more
     fitted model objects.

 Fit an analysis of variance model by a call to `lm' for each
     stratum.



	-thomas