Skip to content

MixMod lsmeans question

3 messages · guillaume chaumet, Alexandra Kuznetsova

#
If for lsmeans table you use lsmeans function, then all the least squares means will be calculated for all effects (for non significant ones as well), if for lsmeans table you use totalAnalysis function, then by default only for significant effects lsmeans will be calculated. Does this answers your question?
#
Here's the data and the code :

aggTc=read.csv("aggTc.csv")

library(lme4)
library(MixMod)

CRT.lmer=lmer(log(CRT)~test*fatigue*wakefulness+ (1|subject),data=aggTc)

totalAnalysis(CRT.lmer,aggTc)

As you could observe, lmer part shows us no interaction effect except
fatigue:wakefulness but second "lsmeans" part shows every significant
effects...

Guillaume Chaumet




2012/9/10 Alexandra Kuznetsova <alku at imm.dtu.dk>
#
Thank you for the data and explanations! Now I understand the problem. This is a normal behaviour, and there is no error here - proc mixed of SAS program gives the same results. It could be that estimates of population means are significant and the effects of ANOVA table non-significant