Example without Using PROC TABULATE

Here is the situation: Your boss wants to know the average age, income, and education of your customers, overall and by gender. "No problem," you say, "SAS software can do that easily." To get the overall means, you use the following code:
PROC MEANS;
   VAR AGE INCOME EDUC;
RUN;
This code produces Output 1.1. The column under the heading Mean has your desired results.
Output 1.1 MEANS Procedure Output
MEANS Procedure Output
But wait a minute, didn’t your boss also want the results broken down by gender? Now you have to add another procedure to your program. To get the breakdown by gender, you repeat the same PROC MEANS, adding ...

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.