wilcoxon_signed_rank
Test whether the median difference between paired samples is zero by ranking absolute differences. Nonparametric alternative to the paired t-test for small or non-normal samples.
Instructions
The non-parametric alternative to paired_t_test -- use when that test's own small-n warning makes a normal-theory result suspect. Tests whether the median of the paired differences is zero, by ranking the absolute differences rather than assuming they're normally distributed. Pairs with a zero difference are dropped (and counted in a warning), the standard procedure. statistic is T = min(W+, W-).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | first measurement of each pair, e.g. 'before' | |
| b | Yes | second measurement of each pair, e.g. 'after' -- same length and pairing order as a | |
| alpha | No | significance level for the test (and any confidence interval); default 0.05 |