Add Class Variables on Both Dimensions
Overview
The previous example
shows how to reformat a table from one to two dimensions, but it does
not show the true power of two-dimensional tables. With two dimensions,
you can classify your statistics by two different variables at the
same time.
To do this, you put
one class variable in the row dimension and one class variable in
the column dimension. Education is displayed in rows and income is the column
variable in Statistic Definitions for a Two-Dimensional Table. In this new table, we will add employment status as an additional column variable. Instead of displaying only the N and MEAN of the variable INCOME, we will display these statistics broken down by part-time versus full-time employment ...
Get PROC TABULATE by Example, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.