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

Feature request: Two-way ANOVA documentation #1998

Open
MauKappel opened this issue Sep 25, 2024 · 2 comments
Open

Feature request: Two-way ANOVA documentation #1998

MauKappel opened this issue Sep 25, 2024 · 2 comments

Comments

@MauKappel
Copy link

I was looking at a two-way ANOVA analysis and was confused by the p-value in the table. Usually the p-values are reported for the independent variables and not the model p-value. When I looked at the tests documentation I was still confused as it mentioned the lm() call and I was expecting anova() but not broom::glance(). However, it makes sense to do it like this for the format of the table.

tbl_continuous,TRUE,FALSE,,stats,anova_2way,,gtsummary:::add_p_test_anova_2way,FALSE,lm(continuous_variable ~ by + variable),Two-way ANOVA,

It may be obvious to others, but I wanted to point out my experience.

Thanks for providing gtsummary, I love using it!

Warm regards,
Maurice

@ddsjoberg
Copy link
Owner

Dear @MauKappel thank you for the post and the kinds words!

Reviewing the documentation, I agree that it's not 100% clear which p-value from lm() is being reported.

image

If we provided lm(continuous_variable ~ by + variable) |> broom::glance() for the pseudo code instead, would that be more clear?

@MauKappel
Copy link
Author

Yes then it would be clear. Thanks!

MauKappel added a commit to MauKappel/gtsummary that referenced this issue Oct 16, 2024
Updated two-way ANOVA documentation

ddsjoberg#1998
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

2 participants