Skip to content
Prev 76714 / 398502 Next

Doubt about nested aov output

That's great.  In your example, the aov fit is following by a warning:

 > res2 <- aov(y ~ fix + Error(fix/R1/R2), data = dat)
Warning message:
Error() model is singular in: aov(y ~ fix + Error(fix/R1/R2), data = dat)

	  Moreover, to test whether your change was statistically significant, 
library(nlme) supports "anova" with two nested models.  In this case, it 
produced the following:

 > anova(reslme, reslme2)
         Model df      AIC      BIC    logLik   Test      L.Ratio p-value
reslme      1  6 864.4973 881.0704 -426.2487
reslme2     2  7 866.4973 885.8325 -426.2487 1 vs 2 1.818989e-12       1
 >
	  I don't know if this relates to Ronaldo Reis' question, but it 
certainly seems plausible.

	  spencer graves
Christoph Buser wrote: