[R] Random Effects for One-Way Anova
Christian Hennig
chrish at stats.ucl.ac.uk
Wed Nov 30 15:10:38 CET 2005
On Wed, 30 Nov 2005, Giuseppe.Palermo at bo.infn.it wrote:
> I'm sorry if I wasn't clear....
> There are repeated measures for each level of my factor.
> For instance, the dataframe could look like that:
>
> A B
> 12.0 1
> 12.3 1
> 15 1
> 12.9 2
> 16.7 2
> 15.4 2
> 23.5 3
> 9.6 3
> 7.8 3
>
> In order to fit a random effects, is right to apply:
> lme(A~1,data=DATA,random=~1|B) ?
Yes.
Christian
*** --- ***
Christian Hennig
University College London, Department of Statistical Science
Gower St., London WC1E 6BT, phone +44 207 679 1698
chrish at stats.ucl.ac.uk, www.homepages.ucl.ac.uk/~ucakche
More information about the R-help
mailing list