tests/ranksum.R

 library(fuzzyRankTests)

 options(digits=5) # avoid rounding differences

 x <- c(1, 2, 3, 4, 4, 4, 5, 6, 7)
 y <- c(4, 5, 7, 7, 8, 9, 10, 11)

 fuzzy.ranksum.test(x, y)

 wilcox.test(x, y)

 fuzzy.ranksum.test(x, y, alt = "less")

 wilcox.test(x, y, alt = "less")

 fuzzy.ranksum.ci(x, y)

 wilcox.test(x, y, conf.int = TRUE)

 fuzzy.ranksum.ci(x, y, alt = "less")

 wilcox.test(x, y, conf.int = TRUE, alt = "less")

 fuzzy.ranksum.ci(x, y, alt = "great")

 wilcox.test(x, y, conf.int = TRUE, alt = "great")

Try the fuzzyRankTests package in your browser

Any scripts or data that you put into this service are public.

fuzzyRankTests documentation built on Aug. 14, 2021, 9:07 a.m.