anova. comparison ignoring 2nd factor

Hi there!
I've got 2-way anova
mdl <- aov(calluna ~ age* height, data = df)

I need to do consecutive comparison only for age. So I do it like that
emmeans(mdl,
consec ~ age,
adjust = NULL)

The problem is I've got the results "Results are averaged over the levels of: height.
How can I ignore the "height" factor?

I mean I know I can create a separate anova only with age factor. But maybe there's an elegant solution to adjust this code? :slight_smile: to keep working with the same model.
emmeans(mdl,
consec ~ age,
adjust = NULL)

Thanx!

This topic was automatically closed 42 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.