Example Using PROC TABULATE

To produce exactly what your boss wants, use the following code:
PROC TABULATE;
   CLASS GENDER;
   VAR AGE INCOME EDUC;
   TABLE (AGE INCOME EDUC)*MEAN, GENDER ALL;

RUN;
This generates Output 1.3. It has all of the numbers your boss wants in a single table, and it is ready for delivery.
Output 1.3 PROC TABULATE Table
PROC TABULATE Table
Okay, so if PROC TABULATE is so great, why doesn’t everybody use it? The answer is that many users find PROC TABULATE hard to learn. The syntax is not as intuitive as some other SAS procedures. The goal of this book is to debunk the myth that PROC TABULATE is impossible to learn. The following chapters walk ...

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.