Two Stacked Categorical Layer Variables

If you have more than one categorical variable in the layers, you can either stack or nest the layer variables. By default, layer variables are stacked. (Note: If you have any scale layer variables, layer variables can only be stacked.)

  1. Open the table builder (Analyze menu, Tables, Custom Tables).
  2. If you don't already have Age category in the rows and Gender in the layers, follow the directions in the previous example for creating a layered table.
  3. Drag and drop Highest degree from the variable list to the Layer list below Gender.

    The two radio buttons below the Layer list in the Layer Output group are now activated. The default selection is Show each category as a layer. This is equivalent to stacking.

  4. Click OK to create the table.
  5. Double-click the table in the Viewer window to activate it.
  6. Click the down arrow on the drop-down list to display the whole list of layers.

There are seven layers in the table: two layers for the two Gender categories and five layers for the five Highest degree categories. For stacked layers, the total number of layers is the sum of the number of categories for the layer variables (including any total or subtotal categories you have requested for the layer variables).