TEST name (variables </ options>);
The TEST statement is required unless the INPVALUES= option is specified. The TEST statement identifies statistical tests to be performed and the discrete and continuous variables to be tested. Table 79.2 summarizes the names and options available in the TEST statement.
Table 79.2: TEST Statement Names and Options
Option |
Description |
---|---|
TEST Names |
|
Requests the Cochran-Armitage linear trend tests for group comparisons |
|
Requests Fisher exact tests |
|
Requests Z-score CA tests based upon the Freeman-Tukey double arcsine transformation |
|
Requests the t test for the mean |
|
Requests the Peto mortality-prevalence test |
|
TEST Options |
|
Uses the binomial variance estimate for CA and Peto tests |
|
Specifies a continuity correction |
|
Specifies whether to use homogeneous or heterogeneous variances |
|
Makes all tests lower-tailed |
|
Computes p-values for the CA and Peto tests by using exact permutation distributions |
|
Identifies the Peto test variable containing the age at death |
|
Makes all tests upper-tailed |
The following tests are permitted as name in the TEST statement.
If the value of a TEST variable is invalid, the observation is not used in the analysis. You can specify two tests only if one of them is MEAN . For example, the following statement is valid:
test ca(d1-d2) mean(c1-c2);
But specifying both CA and FT, as shown in the following statement, is invalid:
test ca(d1-d2) ft(d1-d2);
You can specify the following options in the TEST statement (some apply to only one test).