Lesson 25: Analyzing Categorical Data

Overview Section

In this lesson, we investigate how to use the FREQ procedure to conduct various statistical analyses on categorical data that can be summarized in two-way frequency tables.

Objectives

Upon completion of this lesson, you should be able to:

  • use the FREQ procedure to create a two-way frequency table using raw data
  • use the FREQ procedure's CHISQ option to tell SAS to calculate chi-square statistics for a two-way frequency table
  • know the possible shortcuts you can use in the FREQ procedure's TABLES statement to request multiple frequency tables
  • use the FREQ procedure's WEIGHT statement to create a two-way frequency table using summarized data
  • use the FREQ procedure's AGREE option to request McNemar's chi-square statistic as well as the Kappa statistic
  • use the FREQ procedure's CMH option to request odds ratios be calculated for a case-control study
  • use the FREQ procedure's CMH option to request relative risks be calculated for a cohort study
  • use the FREQ procedure's CHISQ option to tell SAS to calculate the Mantel-Haenszel chi-square statistic so that you can test for linear trend in a 2 × N frequency table
  • use the FREQ procedure's ALL option to tell SAS to calculate the Mantel-Haenszel chi-square statistic for stratified 2 × 2 tables

Textbook Reference Section

 Sections G, H, I and L, M, N, O, P and Q in Chapter 3 of the textbook.