Skip to content
Prev 4793 / 20628 Next

LME and TukeyHSD

Dear Sibylle,

The reason for the error message may be that you transform your response
variable inside the model formula. This frequently causes errors when
working with components of lme models. In addition, you should try "ML"
instead of "REML" (when working with the fixed effects).

You may want to try:

##

mydata<-subset(Kaltenborn,ADDspecies!=1)
mydata$sinmortality<-asin(sqrt(Kaltenborn$PropMortality))
mydata<-mydata[!is.na(mydata$sinmortality),]

modelF<-lme(sinmortality~Diversity+Management+Species
+Height+Year+Diversity*Year, data=mydata, random=~1|Plot/SubPlot,
weights=varPower(form=~Diversity), method="ML")

summary(glht(modelF,linfct=mcp(Species="Tukey")))

##

Be reminded that it may not be sensible to test for Species main effects
when interactions are present; have you tested for interactions between
Species and other terms in the model?

Best wishes,
Christoph