Displaying 1 result from an estimated 1 matches for "mavric".
Did you mean:
mauric
2005 Jul 18
1
Nested ANOVA with a random nested factor (how to use the lme function?)
...ndom)
Site nested within each Location (n=12) (2 Sites nested within each
Location) (Random)
Dependent variable: sp (species abundance)
By using the aov function I can generate a nested ANOVA, however this
assumes that my nested factor is fixed.
> summary(aov(sp~Location/Site, data=mavric))
Df Sum Sq Mean Sq F value Pr(>F)
Location 4 112366 28092 1.2742 0.2962
Location:Transect 5 121690 24338 1.1039 0.3736
Residuals 40 881875 22047
I have tried the following lme function to specify that Site is random:
&...