The modified Levene's test uses the absolute deviation of the observations in each treatment from the treatment median. It then assesses whether or not the mean of these deviations are equal for all treatments. If the mean deviations are equal, the variances of the observations in all treatments will be the same. The test statistic for Levene's test is the ANOVA F-statistic for testing equality of means applied to the absolute deviations.
You can do this in Minitab by making a new column where each value is the absolute value of the response minus the median of that treatment. Then perform a One-Way ANOVA using the new column as the response. The F-statistic and p-value will be the test statistic and p-value for Levene's test.
For example, suppose the responses are in C1 and the treatments are in C2, and C3-C6 are empty.
C1 | C2 |
---|---|
Responses | Treatments |
10 | 1 |
8 | 1 |
6 | 1 |
4 | 1 |
3 | 1 |
16 | 2 |
14 | 2 |
10 | 2 |
6 | 2 |
2 | 2 |
C1 | C2 | C3 | C4 | C5 |
---|---|---|---|---|
Responses | Treatments | ByVar1 | Median1 | Treatment Medians |
10 | 1 | 1 | 6 | 6 |
8 | 1 | 2 | 10 | 6 |
6 | 1 | 6 | ||
4 | 1 | 6 | ||
3 | 1 | 6 | ||
16 | 2 | 10 | ||
14 | 2 | 10 | ||
10 | 2 | 10 | ||
6 | 2 | 10 | ||
2 | 2 | 10 |
When you examine the output you see that the F-statistic and p-value in the One-way ANOVA table are identical with the test statistic and p-value for Levene’s test.