Wilcoxon signed-rank test
H=nan_signrank (x, y) H=nan_signrank (x, y, alpha) H=nan_signrank (x, y, alpha,tail) [h,pval, stats] = nan_signrank(..)
input vector
input vector
significance level (default alpha = 0.05)
returns whether the Null-Hypotheses must be rejected.
p-value of the test
For two matched-pair sample vectors x and y, perform a Wilcoxon signed-rank test of the null hypothesis PROB (x > y) == 1/2. Under the null, the test statistic @var{z} approximately follows a standard normal distribution when n > 5.
@strong{Warning}: This function assumes a normal distribution for z and thus is invalid for n < 5.
With the optional argument string tail, the alternative of interest can be selected. If tail is "~=" or "<>", the null is tested against the two-sided alternative PROB (x > y) != 1/2. If alt is ">", the one-sided alternative PROB (x > y) > 1/2 is considered. Similarly for "<", the one-sided alternative PROB (x > y) < 1/2 is considered. The default is the two-sided case.