Skip to Main Content
SAS for R Users
book

SAS for R Users

by Ajay Ohri
September 2019
Beginner to intermediate content levelBeginner to intermediate
208 pages
3h 17m
English
Wiley
Content preview from SAS for R Users

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

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

Statistical Hypothesis Testing with SAS and R

Statistical Hypothesis Testing with SAS and R

Sonja Kuhnt, Dirk Taeger

Publisher Resources

ISBN: 9781119256410Purchase book