Nesting Variables

Nesting, like crosstabulation, can show the relationship between two categorical variables, except that one variable is nested within the other in the same dimension. For example, you could nest Gender within Age category in the row dimension, showing the number of males and females in each age category.

You can also nest a scale variable within a categorical variable. For example, you could nest Income within Gender, showing separate mean (or median or other summary measure) income values for males and females.

To Nest Variables

  1. Drag and drop a categorical variable into the row or column area of the canvas pane.
  2. Drag and drop a categorical or scale variable to the left or right of the categorical row variable or above or below the categorical column variable.
Table 1. Nested categorical variables
Variable 1 Variable 2 Summary Statistic
Category 1 Category 1 12
  Category 2 34
  Category 3 56
Category 2 Category 1 12
  Category 2 34
  Category 3 56

See the topic Nesting Categorical Variables for more information.

Note: Custom Tables do not honor layered split file processing. To achieve the same result as layered split files, place the split file variables in the outermost nesting layers of the table. For more information of split file processing, see Split file.