[R] Analysis of Variance with Random Effects
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Apr 17 15:16:28 CEST 2001
On Tue, 17 Apr 2001, Patrick Lentz wrote:
> I am currently trying to perform an ANOVA with random effects in R, but
> failed in finding the correct code.
> Does a code exist for performing an ANOVA with random effects similar to
> "aov" or "anova" for fixed effects?
> Thanks for your help and best wishes
> Patrick Lentz
Yes, it's called aov(). You need a formula with Error() in. There is an
example in ?aov, believe it or not.
If your data are really not suitable for aov (e.g. unbalanced) you can use
lme in package nlme.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help