Mann-Whitney on stacked data

This macro performs the Mann-Whitney Test on stacked data. Subcommands can be used to specify the confidence level and alternative hypothesis. By default, Minitab uses a 95% confidence level and performs the two-sided test.

This macro performs the Mann-Whitney Test on stacked data. Subcommands can be used to specify the confidence level and alternative hypothesis. By default, Minitab uses a 95% confidence level and performs the two-sided test.

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

  • A column of numeric data
  • A corresponding column of subscripts

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 and C2 contains the subscripts (grouping variable).To run the macro, choose View > Command Line/History and type:

%MWSTACK C1 C2

Click Run.