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

Examine the Data

Overview

Now we are ready to examine the data in more detail. You can use PROC PRINT to look at the printed output and PROC FREQ to look at frequency distributions.

Examine the Printed Output

The best way to look at the data is to run PROC PRINT on a sample of the observations. This gives us a feel for the data. You can miss important details if you only look at summary procedures such as PROC FREQ and PROC MEANS.
PROC PRINT DATA=TESTDAT (OBS=50);
   VAR ID EDUC INCOME AGE;
   FORMAT _ALL_;
   TITLE 'SAMPLE RECORDS FOR REVIEW';
RUN;
To keep the output manageable, the (OBS=50) option limits the output to 50 observations instead of all 6,639. The FORMAT _ALL_ statement is used to strip off the formats from each of the variables. You ...
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