Hello,


I have one question about Anova in car package. Here is my situation:



I have a response matrix (Y), consisting of 7 different responses for a
group of subjects, 2 categorical factors (A, B), 3 covariates (C,D,E). I
would like to know the main effects of 2 factors and the interaction between
them on each of 7 responses. So, I used



Linear regression (lm) and Anova with a model, Y[,i]~A+B+A:B+C+D+E in a
loop. This worked as I expected it to work.

However, I want to know how to perform the same task without using any loop
to increase the performance.



Basically, my question is



How to perform multiples of LM and Anova without using a loop. If anyone
know how to do this, would you advise me?



Thank you in advance for your any help.


-- 
Sungeun Kim

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to