Repository navigation
tests: NPTESTS independent samples against R, run bounds against enumeration - #450
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test only. The independent-samples tests of NPTESTS and their pairwise and stepwise comparisons, checked on 63 invented readings with many ties against the manual's formulas written out in base R (with kruskal.test, wilcox.test and chisq.test as a second check where they apply): Kruskal-Wallis, median (Yates for pairs above 30 cases), Jonckheere-Terpstra with the tie variance, Dunn pairwise with Bonferroni, pairwise median and JT, stepwise subsets, Mann-Whitney asymptotic, Kolmogorov-Smirnov, Moses, Hodges-Lehmann with limits. No discrepancy.
One difference on record (Wald-Wolfowitz fewest and most runs with ties): the manual's printed steps, transcribed into R, disagree with exhaustive enumeration in 17 of 301 random tie patterns, in both directions, so they cannot be the intended bounds. The engine computes the true bounds by dynamic programming; a new unit test checks it against enumeration on 300 random patterns. Scripts in lab/oracles/nptests-r; choices in planning README section 8.