Modify Statistic Labels

Overview

When we put statistics in our tables, PROC TABULATE adds labels for the appropriate rows or columns that indicate which statistic has been selected. As SAS programmers, the labels N, MEAN, STD, and RANGE might make perfect sense. But what about the end users?
Wouldn’t it be nice if you could add more descriptive labels? As it happens, you can. PROC TABULATE supplies default labels for statistics, but they can be renamed to anything you want. For example, in the following table, we display three statistics. The following code generates a table with the default labels:
PROC TABULATE DATA=TEMP;
   CLASS OCCUP FULLTIME;
   VAR INCOME;
   TABLE OCCUP, FULLTIME*INCOME*(N MEAN STD);
RUN;
Output 9.3 shows the results. There ...

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.