[R] multiple numerical variables in aov

Chuck Cleland ccleland at optonline.net
Fri Apr 11 13:42:17 CEST 2003

Rishabh Gupta wrote:
> I want something like
>      aov(v1 + v2 + v3 ~ g)
> Essentially I want to find out whether the variables v1, v2, v3, etc can collectively discriminate
> between different values of variable g. Could somebody tell whether this is possible and if so
> how?

   With v1, v2, v3, and g in the dataframe mydata, try the following:

summary(manova(cbind(v1, v2, v3) ~ g, data = mydata), test="Wilks")

hope it helps,

Chuck Cleland

More information about the R-help mailing list