# Appropriate post-hoc test after a mixed design anova in R [duplicate]

I have a mixed design ANOVA, with a 2 level between-subject and a 7 level within subject variable. What is the appropriate post-hoc test after a significant ANOVA?

I'd like to see R code in the response.

## marked as duplicate by Henrik, Andy, gung♦, Glen_b♦, Nick StaunerMay 14 '14 at 16:52

• OK, so if I have an ANOVA defined as aov(value~Condition*Scenario+Error(Subject/Scenario)), how do I define it using lme? – Pio May 14 '14 at 18:41