SAS Example Problem Number 11

Overview

This example demonstrates how to summarize a comparison between two independent groups using proc chart.

Example Problem

This example uses the same data as we have used in the prior examples. For a listing of the data and variables examine Example 2.

Create a SAS program that includes the following:

  1. A title identifying your program
  2. Set the linewidth on output to be 80
  3. Create a data set named sample1
  4. Create your input statement
  5. Read the data from the file.
  6. Define labels for each variable giving it a descriptive name.
  7. Use proc chart to summarize the two groups.

If you have problems, here are my files to look at:

  • The SAS program used, example11.sas
  • The data file used, example2.dat
  • The SAS listing file generated, example11.lst
  • The SAS log file generated, example11.log
    Author - Jack Suess
    UMBC University Computing Services
    Created - 1/15/96