wilcox.text() [🇷 for BE/BA]

posted by Helmut Homepage – Vienna, Austria, 2026-04-26 11:44 (39 d 07:00 ago) – Posting: # 24609
Views: 531

Dear all,

since [image] 4.6.0 the function wilcox.test() can perform exact (conditional) inference in case of ties. Therefore, package coin* is no more needed for the comparison of tmax.

set.seed(123456)
T    <- 0.5 * round(runif(n = 24, min = 1, max = 3) / 0.5)
R    <- 0.5 * round(runif(n = 24, min = 1, max = 3) / 0.5)
data <- data.frame(subject = factor(c(1:24, 1:24)),
                   treatment = factor(c(rep("T", 24), rep("R", 24)), levels = c("T", "R")),
                   tmax = c(T, R))
by(data$tmax, data$treatment, summary)

data$treatment: T
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
  1.000   1.500   2.000   2.062   2.625   3.000
------------------------------------------------------------
data$treatment: R
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
  1.000   1.875   2.250   2.167   2.500   3.000



Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
Activity
 Admin contact
23,653 posts in 4,991 threads, 1,570 registered users;
470 visitors (0 registered, 470 guests [including 29 identified bots]).
Forum time: 18:44 CEST (Europe/Vienna)

I’m all in favor of the democratic principle
that one idiot is as good as one genius, but I draw the line
when someone takes the next step and concludes
that two idiots are better than one genius.    Leo Szilard

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5