ENH: Add post-hoc tests to AnovaRM results #9589
ENH: Add post-hoc tests to AnovaRM results #9589Tiffanyccchen wants to merge 6 commits intostatsmodels:mainfrom
Conversation
Adds pairwise_tukeyhsd and �llpairtest methods to the AnovaResults class. This allows for direct post-hoc analysis following a repeated measures ANOVA, simplifying the user workflow. This change also refactors the GroupsStats class out of the sandbox and into the central ools.grouputils module. The _check_data_balanced method in AnovaRM is updated to use this new utility. Unit tests are added for the new post-hoc methods and for the refactored GroupsStats class to ensure correctness and reliability.
646e7ac to
d3734b0
Compare
|
Thanks for the PR This will take some time to review. The test case is for AnovaRM and not for plain anova. However, the connection to multicomp is in anova_lm, AFAICS. Another issue is that, AFAIR, the return of allpairstest method is outdated and should be improved to follow more recent patterns. (mentioned in issue ????) update |
|
too many changes unrelated to the main change (I did not check what this does for RM anova) refactoring the original code in the sandbox and moving it out requires more review and refactoring, and should be a separate PR. |
Adds pairwise_tukeyhsd and allpairtest methods to the AnovaResults class. This allows for direct post-hoc analysis following a repeated measures ANOVA, simplifying the user workflow.
This change also refactors the GroupsStats class out of the sandbox and into the central tools.grouputils module. The _check_data_balanced method in AnovaRM is updated to use this new utility.
Unit tests are added for the new post-hoc methods and for the refactored GroupsStats class to ensure correctness and reliability.
NumPy's guide.
Details
Notes:
needed for doc changes.
then show that it is fixed with the new code.
verify you changes are well formatted by running
flake8is installed. This command is also available on Windowsusing the Windows System for Linux once
flake8is installed in thelocal Linux environment. While passing this test is not required, it is good practice and it help
improve code quality in
statsmodels.