[R] Confidence interval in the Wilcoxon exact test

Jue.Wang2 at sanofi-aventis.com Jue.Wang2 at sanofi-aventis.com
Fri Sep 29 23:16:44 CEST 2006


Hi,

Two functions wilcox.exact and wilcox_test give slightly different confidence intervals of the difference of the medians: for example
  
y<-c(0,0,1.081,0.594,0,0.769,0,0.009,0,0,0.798,0.405,0.498,0.946,1.35,1.149,0.528)
x<-c(rep(1,10),rep(2,7))

aa<-wilcox.exact(y~x,conf.int=TRUE)
bb<-wilcox_test(y~factor(x),distribution="exact",conf.int=TRUE)

aa
bb

Does anyone know why?

Thank you

Jue Wang, Biostatistician
Contracted Position for Preclinical & Research Biostatistics
PrO Unlimited
(908) 231-3022



More information about the R-help mailing list