<< test2n Tests

Stixbox >> Stixbox > Tests > test2r

test2r

Test location equality of two samples using rank test

Calling Sequence

pval=test2r(x,y)
[pval,ranksum]=test2r(x,y)

Parameters

x :

a nx-by-1 matrix of doubles

y :

a ny-by-1 matrix of doubles

pval :

a 1-by-1 matrix of doubles, the two-sided p-value

ranksum :

a 1-by-1 matrix of doubles, the rank sum statistics

Description

Test location equality of two samples using rank test.

This is the Wilcoxon-Mann-Whitney test. It is two sided.

If you want a one sided alternative then divide pval by 2.

Examples

x=distfun_binornd(10,0.5,20,1);
y=distfun_binornd(10,0.5,20,1);
pval=test2r(x,y)
[pval,ranksum]=test2r(x,y)

Bibliography

http://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U

Authors


Report an issue
<< test2n Tests