Emmeans post hoc pairwise test - error in usemethod("contrast")

I was trying to perform a post hoc pairwise comparison using emmeans package - I'm using code
m1.emm <- emmeans(m1, ~ Group|Condition)
contrast(m1.emm, "pairwise") - but Rstudio is displaying the message
NOTE: Results may be misleading due to involvement in interactions
Error in UseMethod("contrast") not applicable method for 'contrast' applied to an object of class "emmGrid". No result is shown. I'm new to R, so I'm not sure what it means nor how to fix it.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.