The TTEST Procedure

PAIRED Statement

  • PAIRED pair-lists;

The pair-lists in the PAIRED statement identifies the variables to be compared in paired comparisons. You can use one or more pair-lists. Variables or lists of variables are separated by an asterisk (*) or a colon (:). The asterisk requests that each variable on the left be compared with each variable on the right. The colon requests that the first variable on the left be compared with the first on the right, the second on the left with the second on the right, and so on. The number of variables on the left must equal the number on the right when the colon is used. The differences are calculated by taking the variable on the left minus the variable on the right for both the asterisk and colon. A pair that is formed by a variable with itself is ignored. Use the PAIRED statement only for paired comparisons. The CLASS and VAR statements cannot be used with the PAIRED statement.

Examples of the use of the asterisk and the colon are shown in Table 6.

Table 6: PAIRED Statement in the TTEST Procedure

These PAIRED Statements Yield These Comparisons
PAIRED A*B; A-B
PAIRED A*B C*D; A-B and C-D
PAIRED (A B)*(C D); A-C, A-D, B-C, and B-D
PAIRED (A B)*(C B); A-C, A-B, and B-C
PAIRED (A1-A2)*(B1-B2); A1-B1, A1-B2, A2-B1, and A2-B2
PAIRED (A1-A2):(B1-B2); A1-B1 and A2-B2


Last updated: December 09, 2022