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


______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to