Chapter 20: Computing Frequencies

Introduction

Creating a Data Set to Demonstrate Features of PROC FREQ

Using PROC FREQ to Generate One-Way Frequency Tables

Creating Two-Way Frequency Tables

Creating Three-Way Frequency Tables

Using Formats to Create Groups for Numeric Variables

Conclusion

Problems

Introduction

You can use PROC FREQ to create one-way, two-way (row and column), and three-way (page, row, and column) tables. You can output counts and percentages as well as statistics such as chi-square and Fisher’s Exact test. This chapter will show you examples of these tasks.

Creating a Data Set to Demonstrate Features of PROC FREQ

The first step is to have some test data to demonstrate features of PROC FREQ. To this end, you can run the program ...

Get An Introduction to SAS University 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.