Repository navigation
BUG: Fix unequal varcorrection in tukeyhsd - #9175
kuangzhexiang wants to merge 8 commits into
Conversation
|
Great, thanks for finding this mistake. Do you have an example that uses this code path? |
|
Hello @kuangzhexiang! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-04-07 02:49:39 UTC |
add a unit test in examples/try_tukey_hsd.py, is it ok? |
|
No, unit tests need to go into a module that starts with tests The most appropriate test file for Games-Howell unit test is Also, the unit test need to go into a function with name starting with "test", see the other cases The example files like If Games-Howell test verifies now against R, then we can add it to the official docs. I will look at that at the end of this PR. If I understand correctly, then related PR and issue are #7332 and #8396 |
thanks a lot, added the unit test in test_pairwise.py |
|
@josef-pkt Could you please review it? All checks have passed |
|
Thanks Looks good to me, but I want to go over some details in the related code. |
|
many packages seems to have games-howell, tamhane t2 and dunnet t3 as options for unequal nobs/variance. need future proof keywords when we add the other two. Also, we eventually need an option to use standard p-value correction method, instead of hardcoded tukey hsd p-value distribution. |
|
PMCMRplus gives the same results for p-values but with more digits |
|
@kuangzhexiang Thanks again for the PR merged in #9487 |
NumPy's guide.
Details
like tests in try_tukey_hsd.py
With the first dataset, results should be the same, as below.