Table Data (ANACOR command)

  • The cells of a table can be read and analyzed directly by using the keyword ALL after TABLE.
  • The columns of the input table must be specified as variables on the DATA LIST command. Only columns are defined, not rows.
  • ALL is followed by the number of rows in the table, a comma, and the number of columns in the table, all enclosed in parentheses.
  • If you want to analyze only a subset of the table, the specified number of rows and columns can be smaller than the actual number of rows and columns.
  • The variables (columns of the table) are treated as the column categories, and the cases (rows of the table) are treated as the row categories.
  • Rows cannot be labeled when you specify TABLE=ALL. If labels in your output are important, use the WEIGHT command method to enter your data (see Analyzing Aggregated Data (ANACOR command)).

Example

DATA LIST /COL01 TO COL07 1-21.
BEGIN DATA
 50 19 26  8 18  6  2
 16 40 34 18 31  8  3
 12 35 65 66123 23 21
 11 20 58110223 64 32
 14 36114185714258189
  0  6 19 40179143 71
END DATA.
ANACOR TABLE=ALL(6,7).
  • DATA LIST defines the seven columns of the table as the variables.
  • The TABLE=ALL specification indicates that the data are the cells of a table. The (6,7) specification indicates that there are six rows and seven columns.