SAS Example Problem Number 12
Overview
This example demonstrates how to
perform a hypothesis test between two
independent groups using proc ttest.
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:
- A title identifying your program
- Set the linewidth on output to be 80
- Create a data set named sample1
- Create your input statement
- Read the data from the file.
- Define labels for each variable giving it a descriptive name.
- Use proc ttest to perform a hypothesis test.
If you have problems, here are my files to look at:
The SAS program used, example12.sas
The data file used, example2.dat
The SAS listing file generated, example12.lst
The SAS log file generated, example12.log
Author - Jack Suess
UMBC University Computing Services
Created - 1/15/96