rotarod.RdThe endurance time of 24 rats in two groups on a rotating cylinder.
rotarodA data frame with 24 observations on 2 variables.
timeendurance time (seconds).
groupa factor with levels "control" and "treatment".
The rats were randomly assigned to receive a fixed oral dose of a centrally
acting muscle relaxant ("treatment") or a saline solvent
("control"). The animals were placed on a rotating cylinder and the
endurance time of each rat, i.e., the length of time each rat remained on the
cylinder, was measured up to a maximum of 300 seconds.
This dataset is the basis of a comparison of 11 different software implementations of the Wilcoxon-Mann-Whitney test presented in Bergmann, Ludbrook and Spooren (2000).
The empirical variance in the control group is 0 and the group medians are identical. The exact conditional \(p\)-values are 0.0373 (two-sided) and 0.0186 (one-sided). The asymptotic two-sided \(p\)-value (corrected for ties) is 0.0147.
Bergmann, R., Ludbrook, J. and Spooren, W. P. J. M. (2000). Different outcomes of the Wilcoxon-Mann-Whitney test from different statistics packages. The American Statistician 54(1), 72–77. doi:10.1080/00031305.2000.10474513
## One-sided exact Wilcoxon-Mann-Whitney test (p = 0.0186)
wilcox_test(time ~ group, data = rotarod, distribution = "exact",
alternative = "greater")
#>
#> Exact Wilcoxon-Mann-Whitney Test
#>
#> data: time by group (control, treatment)
#> Z = 2.4389, p-value = 0.01863
#> alternative hypothesis: true mu is greater than 0
#>
## Two-sided exact Wilcoxon-Mann-Whitney test (p = 0.0373)
wilcox_test(time ~ group, data = rotarod, distribution = "exact")
#>
#> Exact Wilcoxon-Mann-Whitney Test
#>
#> data: time by group (control, treatment)
#> Z = 2.4389, p-value = 0.03727
#> alternative hypothesis: true mu is not equal to 0
#>
## Two-sided asymptotic Wilcoxon-Mann-Whitney test (p = 0.0147)
wilcox_test(time ~ group, data = rotarod)
#>
#> Asymptotic Wilcoxon-Mann-Whitney Test
#>
#> data: time by group (control, treatment)
#> Z = 2.4389, p-value = 0.01473
#> alternative hypothesis: true mu is not equal to 0
#>