# 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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

• There are a number of relevant questions with answers on this side: (one)[stats.stackexchange.com/q/14078/442], (two)[stats.stackexchange.com/q/15526/442]. Actually, your questions seems identical to the second one, hence I suggest closing. – Henrik May 14 '14 at 13:02
• 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