If I use lme for mixed ANOVA as follow
lme_model=lme(dv ~ between*within, data frame, random=~1|ID, correlation=corCompSymm(form=~1|ID))
how can I perform between group comparison for every level of within factor?
This great answer advice to use anova with L argument. But I can't understand how.
Thanks for the help
lsmeansandmultcomppackages ? – Stéphane Laurent Feb 11 '13 at 21:55Lsmeansis what I am looking for.multcompwithsummary(glht(lme_model, linfct=mcp(between = "Tukey")), test = adjusted(type = "fdr"))lead to warningIn mcp2matrix(model, linfct = linfct) : covariate interactions found -- default contrast might be inappropriate. Islsmeansconcerned about covariate interactions? – sviter Feb 12 '13 at 08:35lsmeans(lme_model, pairwise ~ between | within). – sviter Feb 12 '13 at 09:36multcompand/orlsmeansreturns a warning in such situations. – Stéphane Laurent Feb 12 '13 at 09:40