I read the documentation in R for wilcox.test()
and want to determine:
- How R computes
wilcox.test()
- The docs say that when the number of samples is small, it does the test exactly (instead of using a normal approximation) -- what tables does it use to do this exactly?
wilcox.test.default is "hidden" in the stats package's namespace.
That's why you need to do getAnywhere("wilcox.test.default")
or stats:::wilcox.test.default
to view it.
Package exactRankTests can do exact wilcox rank sum tests.
来源:https://stackoverflow.com/questions/12395110/how-does-r-do-exact-wilcox-rank-sum-tests