TEST test-options;
The TEST statement requests asymptotic tests for measures of association and measures of agreement. The test-options identify which tests to compute. Table 3.20 lists the available test-options, together with their corresponding TABLES statement options. Descriptions of the test-options follow the table in alphabetical order.
For each measure of association or agreement that you request in the TEST statement, PROC FREQ provides an asymptotic test that the measure is 0. The procedure displays the asymptotic standard error under the null hypothesis, the test statistic, and the one-sided and two-sided p-values. PROC FREQ also provides confidence limits for the measure. The ALPHA= option in the TABLES statement determines the confidence level; by default, ALPHA=0.05, which provides 95% confidence limits. For more information, see the sections Asymptotic Tests and Confidence Limits. For information about the individual measures, see the sections Measures of Association and Tests and Measures of Agreement.
You can also request exact tests for selected measures of association and agreement by using the EXACT statement. For more information, see the section Exact Statistics.
You must use a TABLES statement with the TEST statement. If you use only one TABLES statement, you do not need to specify the same options in both the TABLES and TEST statements; when you specify an option in the TEST statement, PROC FREQ automatically invokes the corresponding TABLES statement option. However, when you use the TEST statement with multiple TABLES statements, you must specify options in the TABLES statements to request statistics; PROC FREQ then provides asymptotic tests for those statistics that you specify in the TEST statement.
Table 3.20: TEST Statement Options
Test Option |
Asymptotic Tests |
Required TABLES Statement Option |
---|---|---|
Simple and weighted kappa coefficients |
||
Gamma |
||
Simple kappa coefficient |
||
Kendall’s tau-b |
||
Gamma, Kendall’s tau-b, Stuart’s tau-c, |
||
Somers’ , Somers’ , |
||
Pearson and Spearman correlations |
||
Pearson correlation coefficient |
||
Polychoric correlation |
||
Spearman correlation coefficient |
||
Somers’ |
||
Somers’ |
||
Stuart’s tau-c |
||
Weighted kappa coefficient |
You can specify the following test-options in the TEST statement.