Wilcoxon signed rank test for paired data

This macro performs a nonparametric test for paired samples by calculating the differences and then performing a one-sample Wilcoxon signed rank test. Optional subcommands allow you to specify the alternative hypothesis and to change the confidence level. By default, the two-sided test with H0: ETA = 0 is performed and the confidence level is 95%.

This macro performs a nonparametric test for paired samples by calculating the differences and then performing a one-sample Wilcoxon signed rank test. Optional subcommands allow you to specify the alternative hypothesis and to change the confidence level. By default, the two-sided test with H0: ETA = 0 is performed and the confidence level is 95%.

Download the Macro

Be sure that Minitab knows where to find your downloaded macro. Choose File > Options > General. Under Macro location browse to the location where you save macro files.

Important

If you use an older web browser, when you click the Download button, the file may open in Quicktime, which shares the .mac file extension with Minitab macros. To save the macro, right-click the Download button and choose Save target as.

Required Inputs

You need two columns of paired samples.

Optional Inputs

CONFIDENCE K
Use to specify a confidence level (K) other than the default of 0.95 (95%).
ALTERNATIVE K
Use to perform a test where H1: ETA1 < ETA2 (K = -1) or H1: ETA1 > ETA2 (K= 1).

Running the Macro

Suppose C1 contains the data for the first sample and C2 contains the data for the second sample. To run the macro, choose View > Command Line/History and type:

%PWILCOXON C1 C2

Click Run.