FUNCTION REFERENCE

signrank

Wilcoxon signed-rank test with tied midranks.

Wilcoxon signed-rank test with tied midranks.

Syntax

[p,h,stats] = signrank(x[,m_or_y][,'Alpha',a,'Tail',tail,'Method',method])

Differences from a scalar median (zero by default) or paired vector are ranked by absolute value; NaNs and zero differences are dropped. stats.signedrank is the sum of positive ranks. Exact midrank sign permutations are the default through 15 nonzero differences, otherwise a tie-corrected normal approximation with continuity correction is used. Method overrides this choice, with a ten million state limit. Legacy positional alpha is accepted. h is logical.

Example

[p,h,s] = signrank([1 -1 2 3])

Differences from MATLAB: vectors only; undefined p gives logical false h.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.