6Frequency Distributions and Cross Tabulations

We have used numeric summary methods in the previous chapter to see analysis of numerical variables. In this chapter we learn how to use frequency distributions and cross tabulations to analyze categorical or factor variables.

6.1 Frequency Distributions in SAS

Proc Freq is the primary procedure for frequency analysis.

We can use nlevels to find the number of levels in that variable. We can also do frequency analysis on two or more variables by keeping them in tables with a white space between each.

We can remove the cumulative frequency, percent, row, col., cumulatives by using the following respectively (norow, nocol,nopercent,nocum).

Get SAS for R Users 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.