<< test1n Tests test2n >>

Stixbox >> Stixbox > Tests > test1r

test1r

Test for median equals 0 using rank test

Calling Sequence

pval=test1r(x)
[pval,ranksum]=test1r(x)

Parameters

x :

a n-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 for median equals 0 using rank test.

This is called the Wilcoxon signed rank test. It is two sided.

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

Examples

x=distfun_normrnd(0,1,20,1);
pval=test1r(x)
[pval,ranksum]=test1r(x)

Bibliography

http://en.wikipedia.org/wiki/Wilcoxon_signed-rank_test

Authors


Report an issue
<< test1n Tests test2n >>