RobinHankin / hyper2

https://robinhankin.github.io/hyper2/
5 stars 3 forks source link

mann-whitney-wilcoxon test with ties #142

Closed RobinHankin closed 9 months ago

RobinHankin commented 2 years ago

title says it all. In base R, under ?wilcoxon.test, there is an example taken from Hollander & Wolfe (1973) but this includes ties which means that args2ordervec() does not work.

RobinHankin commented 2 years ago

This is good:

x <- replicate(10,equalp.test(ordervec2supp3(rrace3(pn=c(x=10,y=5),ps=c(x=0.5,y=0.5))))$p.value)

If everything works, then pvalues in x will be unif(0,1)

RobinHankin commented 9 months ago

idiom above takes about 50 seconds to run [that is, 5 seconds per trial] so it takes too long to be in the examples section of an Rd file.

RobinHankin commented 9 months ago

This is now in inst/rrace3.Rmd.