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

Modify Variable Labels

Overview

When we put variables in our tables, PROC TABULATE adds labels for the appropriate rows or columns that indicate which variable is being displayed where. But variable names are not always very descriptive. The variable name OCCUP might be clear to you, but people reading your table might be confused by this cryptic label. A better approach is to use a descriptive label for your variable. There are two ways to do this. You can use the LABEL and KEYLABEL statements, or you can use the TABLE statement.

Using the LABEL Statement

The first way to add labels to your variables is by using a LABEL statement just like you can in any other procedure. In the following example, three of the variables in the table are assigned ...
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