Creating Frequency Tables with PROC FREQ

The FREQ procedure produces frequency distributions for quantitative variables as well as classification variables. For example, you can use PROC FREQ to determine the percentage of participants who “agreed strongly” with a statement on a questionnaire, the percentage who “agreed somewhat,” and so forth.

The PROC FREQ and TABLES Statements

The general form for the procedure is as follows:

PROC FREQ   DATA=dataset-name;
   TABLES  variable-list  /   options;
RUN;

In the TABLES statement, you list the names of the variables to be analyzed, with each name separated by at least one blank space. Below are the PROC FREQ and TABLES statements from the program presented earlier in this chapter (analyzing data from the ...

Get A Step-by-Step Approach to Using SAS® for Univariate & Multivariate Statistics, 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.