Add a Page for the Totals

So far in this chapter, we have built three-dimensional tables with a single page variable. However, there is no rule that says you can have only one variable in the page dimension. In fact, you can put anything in the page dimension that you can put in a row or column dimension.
For example, if you really wanted to, you could produce a table with the following code:
PROC TABULATE DATA=TEMP;
   CLASS CTRY GENDER EDUC FULLTIME SECTOR;
   VAR INCOME;
   TABLE SECTOR*CTRY*EDUC, FULLTIME, GENDER*INCOME*(MEAN MIN MAX);
RUN;
The resulting table is not shown because it would take up too many pages of this book. What you would get would be a table of FULLTIME by INCOME within GENDER for every combination of SECTOR, CTRY, and EDUC. ...

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.