TEST Statement |
The TEST statement requests asymptotic tests for measures of association and measures of agreement. You must use a TABLES statement with the TEST statement.
specify the statistics for which to provide asymptotic tests. Table 36.13 lists the available statistics, which include measures of association and agreement. The option names are identical to those in the TABLES and OUTPUT statements. You can request all tests for groups of statistics by using group options MEASURES or AGREE. Or you can request tests individually by using the options shown in Table 36.13.
For each measure of association or agreement that you specify, PROC FREQ provides an asymptotic test that the measure equals zero. PROC FREQ displays the asymptotic standard error under the null hypothesis, the test statistic, and the p-values. Additionally, PROC FREQ reports the confidence limits for the measure. The ALPHA= option in the TABLES statement determines the confidence level, which by default equals 0.05 and provides 95% confidence limits. See the sections Asymptotic Tests and Confidence Limits for details. Also see the section Statistical Computations for information about individual measures.
You can request exact tests for selected measures of association and agreement by using the EXACT statement. See the section Exact Statistics for more information.
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 the desired statistics. PROC FREQ then provides asymptotic tests for those statistics that you also specify in the TEST statement.
Option |
Asymptotic Tests |
Required TABLES Statement Option |
---|---|---|
simple and weighted kappa coefficients |
||
gamma |
||
simple kappa coefficient |
||
Kendall’s tau- |
||
gamma, Kendall’s tau-, Stuart’s tau-, |
||
Somers’ , Somers’ , |
||
Pearson and Spearman correlations |
||
Pearson correlation coefficient |
||
Spearman correlation coefficient |
||
Somers’ |
||
Somers’ |
||
Stuart’s tau- |
||
weighted kappa coefficient |