Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emmeans_test with 2x3 ANOVA #139

Open
araikes opened this issue Jan 28, 2022 · 0 comments
Open

emmeans_test with 2x3 ANOVA #139

araikes opened this issue Jan 28, 2022 · 0 comments

Comments

@araikes
Copy link

araikes commented Jan 28, 2022

Hi @kassambara,

I love the rstatix + emmeans + ggpubr environment and am using it in a lot of my analyses. One thing I've run into is using emmeans_test when I have a significant main effect in a 2x3 ANOVA. If I use emmeans outside of rstatix, the cell means are averaged over the levels of the other main effect. However, if I use emmeans_test, I do not have the option to average over the levels of another categorical variable. This results in inflated means and artificially lowered p-values.

Is there anyway to match the functionality of a straight emmeans call, e.g.:

my_aov <- lm(dv ~ pred1 * pred2, data = data)
emmeans(my_aov, pairwise ~ pred1)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant