Adapted from my previous, unanswered question:
I'm analyzing the results of a hormone manipulation experiment. I measured a number of variables at three times in three groups. The groups are different sizes and not all individuals were measured every time, so I'd like to use GLMM rather than a repeated-measures ANOVA. I created the model then tested the significance of the terms (time, treatment, and time x treatment) with ANOVA.
I'm quite new to GLMM, but after doing the tests, further reading suggests that my approach may be inappropriate, particularly with small data sets (I have ~seven animals per group). One reason given against using this method is that it seems that there is disagreement about what the degrees of freedom should be.
Is this method of testing the significance of factors in the model appropriate? I'm aware that the place for me to go is probably the Pinheiro and Bates book, but I don't have access to it at this time. Thanks in advance for any advice.
library(nlme) datums<-data.frame(id=rep(1:20,each=3),var1=runif(60,4,6),var2=runif(60,25,30),var3=runif(60,0,1),var4=runif(60,10,15),var.time=rep(1:3,times=20),var.treatment=rep(c('a','b','c'),each=20)) datums$var.time<-as.factor(datums$var.time) datums$id<-as.factor(datums$id) #and now the GLMMs on each variable - I'll show just one here var1.glmm<-lme(var1~var.time + var.treatment + var.time*var.treatment, data=datums, random = ~1| id) summary(var1.glmm) anova(var1.glmm)