TEST Statement

TEST options ;

The TEST statement requests asymptotic tests for measures of association and measures of agreement. You must use a TABLES statement with the TEST statement.

options

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.

Table 36.13 TEST Statement Options

Option

Asymptotic Tests

Required TABLES Statement Option

AGREE

simple and weighted kappa coefficients

AGREE

GAMMA

gamma

ALL or MEASURES

KAPPA

simple kappa coefficient

AGREE

KENTB

Kendall’s tau-

ALL or MEASURES

MEASURES

gamma, Kendall’s tau-, Stuart’s tau-,

ALL or MEASURES

 

Somers’ , Somers’ ,

 
 

Pearson and Spearman correlations

 

PCORR

Pearson correlation coefficient

ALL or MEASURES

SCORR

Spearman correlation coefficient

ALL or MEASURES

SMDCR

Somers’

ALL or MEASURES

SMDRC

Somers’

ALL or MEASURES

STUTC

Stuart’s tau-

ALL or MEASURES

WTKAP

weighted kappa coefficient

AGREE