Skip to Main Content
PROC TABULATE by Example, Second Edition
book

PROC TABULATE by Example, Second Edition

by Lauren Haworth Lake, Julie McKnight
May 2015
Intermediate to advanced content levelIntermediate to advanced
348 pages
11h 31m
English
SAS Institute
Content preview from PROC TABULATE by Example, Second Edition

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SAS 9.4 Language Reference, 6th Edition

SAS 9.4 Language Reference, 6th Edition

SAS Institute

Publisher Resources

ISBN: 9781607649908