Re: [R] Analysis of Variance with Random Effects

About this list Date view Thread view Subject view Author view

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Tue 17 Apr 2001 - 23:16:28 EST


Message-ID: <Pine.LNX.4.31.0104171414240.5532-100000@gannet.stats>

On Tue, 17 Apr 2001, Patrick Lentz wrote:

> Hello!
>
> 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@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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:39 EST