[R] anova

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Aug 4 08:49:59 CEST 2003


Anna H. Pryor wrote:

> I am totally confused as to how to use anova.  I have three vectors and would 
> like to use anova on them but I don't understand how lm or glm comes into 
> play.  In matlab, you just give the three vectors.  Why isn't it the same in 
> R?

Because R is not Matlab?
You can calculate anova on an lm model such as lm(y ~ x1 + x2), see also 
?aov which calls lm() internally.
In any case, you need to learn how to write those formulas. Please read 
the docs.

Uwe Ligges

> 
> Any help would be greatly appreciated.
> 
> 
> Anna
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list