[R] another ANOVA/LM question

From: Jan Wiener <jan.wiener_at_tuebingen.mpg.de>
Date: Wed 26 Oct 2005 - 22:32:59 EST

Sorry for posting a possibly stupid question.

I am using aov() for calculating ANOVA as follows:

summary(aov(depVar~factor1*factor2+Error(subject/(factor1+factor2)), data=anovaAllData))

and usually all works fine.

How exactly the call has to look if I want to use lm() directly to obtain the same results.

The problem is that due to several reasons I am missing single data points such that I end up with an unbalanced design. From earlier posting I learned that lm() is the way to go in such cases.

However, I do not know how exactly the formula including the error term has to look like for lm().

Hope that made sense,

Thanks in advance,

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Oct 26 22:38:09 2005

This archive was generated by hypermail 2.1.8 : Thu 27 Oct 2005 - 00:38:54 EST