Wednesday, August 11, 2010

R:: Mann Whitney U test

http://www.saburchill.com/IBbiology/stats/002.html



> l<-c(6,4.8,5.1,5.5,4.1,5.3,4.5,5.1)
> ll<-c(6.5,5.5,6.3,7.2,6.8,5.5,5.9,5.5)


> wilcox.test(l,ll,paired=F,exact=F)

Wilcoxon rank sum test with continuity correction

data: l and ll
W = 5.5, p-value = 0.005907
alternative hypothesis: true location shift is not equal to 0

> wilcox.test(ll,l,paired=F,exact=F)

Wilcoxon rank sum test with continuity correction

data: ll and l
W = 58.5, p-value = 0.005907
alternative hypothesis: true location shift is not equal to 0



U1 for Sample :- 58.5
U2 for Sample :- 5.5
U crit from table:- 13
U2 is below 13, So we can reject Null hypothesis.
leaves are bigger in shade .

No comments:

Post a Comment