Use Appropriate Formats for Analysis Variables and Statistics

The previous example used two different formats for two different statistics, but you might also want to use two different formats for two different analysis variables. In the following table, AGE is formatted as a number with a single decimal place and INCOME is shown in dollars:
PROC TABULATE DATA=TEMP;
   CLASS EDUC;
   VAR AGE INCOME;
   TABLE AGE*F=6.1 INCOME*F=DOLLAR10., EDUC*MEAN;
RUN;
In Output 10.4, each analysis variable in the table has an appropriate format.
Output 10.4 Table with Multiple Format Types
Table with Multiple Format Types
But what do you do if you have two analysis variables that each require ...

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.