Hi Javed, Easy. A<-c(2000,2100,2300,2400,6900,7000,7040,7050,7060) median(A) [1] 6900 B<-c(3300,3350,3400,3450,3500,7000,7100,7200,7300) median(B) [1] 3500 wilcox.test(A,B,paired=FALSE)
Wilcoxon rank sum test with continuity correction data: A and B W = 26.5, p-value = 0.233 alternative hypothesis: true location shift is not equal to 0 Jim On Wed, Mar 20, 2019 at 3:48 AM javed khan <javedbtk...@gmail.com> wrote: > > Hi > > This is my function: > > wilcox.test(A,B, data = data, paired = FALSE) > > It gives me high p value, though the median of A column is 6900 and B > column is 3500. > > Why it gives p value high if there is a difference in the median? > > Regards > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.