EXACT statistic-options </ computation-options> ;
The EXACT statement requests exact tests and confidence limits for selected statistics. The statistic-options identify which statistics to compute, and the computation-options specify options for computing exact statistics. For more information, see the section Exact Tests.
Note: PROC NPAR1WAY computes exact tests by using fast and efficient algorithms that are superior to direct enumeration. Exact tests are appropriate when a data set is small, sparse, skewed, or heavily tied. For some large problems, computation of exact tests might require a large amount of time and memory. Consider using asymptotic tests for such problems. Alternatively, when asymptotic methods might not be sufficient for such large problems, consider using Monte Carlo estimation of exact p-values. You can request Monte Carlo estimation by specifying the MC computation-option in the EXACT statement. For more information, see the section Computational Resources.
The statistic-options specify which exact tests to compute. Table 3 lists the available statistic-options and the exact statistics that are computed. Descriptions of the statistic-options follow Table 3 in alphabetical order.
PROC NPAR1WAY provides exact p-values for the following nonparametric location and scale tests: Wilcoxon, median, Van der Waerden (normal), Savage, Siegel-Tukey, Ansari-Bradley, Klotz, Mood, and Conover. The procedure also provides exact p-values for tests that use the raw input data as scores. These exact tests are available when the data are classified into two levels (two-sample tests) and when the data are classified into more than two levels (multisample tests). The two-sample exact tests are based on simple linear rank statistics, and the multisample exact tests are based on one-way ANOVA statistics.
For two-sample data, PROC NPAR1WAY also provides the exact Kolmogorov-Smirnov test, the exact ratio mean deviations (RMD) test, and exact Hodges-Lehmann confidence limits for the location shift.
If you list no statistic-options in the EXACT statement, PROC NPAR1WAY computes all available exact p-values for those tests that you request in the PROC NPAR1WAY statement.
Table 3: EXACT Statement Statistic Options
| Statistic Option | Exact Test |
|---|---|
| AB | Ansari-Bradley test |
| CONOVER | Conover test |
| HL | Hodges-Lehmann confidence limits |
| KLOTZ | Klotz test |
| KS | EDF | Two-sample Kolmogorov-Smirnov test |
| MEDIAN | Median test |
| MOOD | Mood test |
| RMD | Ratio mean deviations (RMD) test |
| SAVAGE | Savage test |
| SCORES=DATA | Test with input data as scores |
| ST | Siegel-Tukey test |
| VW | NORMAL | Van der Waerden (normal scores) test |
| WILCOXON | Wilcoxon test for two-sample data or |
| Kruskal-Wallis test for multisample data |
You can specify the following statistic-options:
Computation-options specify options for computing exact statistics. You can specify the following computation-options: