O'Reilly logo

An Introduction to SAS University Edition by Ron Cody

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required