
Computer Lab Exercises
1) First steps
- Create directory stat3000 on the C drive (C:\stat3000)
- From your data disk (from Hayter book) copy following files in stat3000 directory:
- A:\Chap_6\Ascii\6-08.txt
- A:\Chap_6\Ascii\6-09.txt
- A:\Chap_6\Ascii\6-10.txt
- A:\Chap_6\Ascii\6-11.txt
- A:\Chap_6\Ascii\6-12.txt
- Take the data disk out of the floppy drive and insert an empty diskette.
- From the Stat3000 Web page, download the SAS model programs and one of the
student data sets (student_data1.prn or student_data2.prn). Save the file in stat3000
directory under the name 'student_data.prn'.
2) Using Microsoft Excel for explanatory data analysis
- Producing bar charts and pie charts:
- open the file '6-08.txt'
- present the data in a well labeled bar chart and a pie chart. Try to change bar
width, color of individual bars and pie 'slices', and the labeling
- repeat the exercise with the file '6-09.txt'
- Producing histograms:
- open the file '6-10.txt'.
- use 'Data analysis toolpack' to produce a histogram. First, let the program choose
the intervals. Then try to define the interval width 'manually'.
- work on the chart: remove spaces between the bars, change titles and labeling etc.
- repeat the exercise with the file '6-11.txt' and '6-12.txt'.
- Descriptive statistics:
- open the file '6-10.txt'.
- use 'Data Analysis Toolpack' to produce a statistical summary. Use Excel built-in
function to obtain those measures of center and spread that are not listed in the
automatic summary.
- repeat the exercise with the file '6-11.txt' and '6-12.txt'.
Every time you finish a piece of work, save the entire workbook!
3) Using SAS for data analysis
- Interactive data analysis:
- import the data from '6-08.txt'. Create a work file with an appropriate name (e.g.
TV).
- use interactive data analysis tools to obtain a bar chart, and a frequency table.
- repeat the exercise with the data from '6-09.txt'.