STA 5105L

advertisement
STA 5105L
Spring 2002 Lab #4
Name:__________________________
Maximum Score: 10 points
Your score:___________
Objectives: The objectives of this lab assignment are to learn to use select cases to choose a
subset of the data, to use the journal from a previous lab to repeat the command used in a
previous session and to use the chart editor to make the desired histogram.
The data set to be used is the Honolulu Heart Study data given in Table 3.1 of Basic Statistics
for the Health Sciences, 4th Edition.
Follow the start-up procedure.
Open the SPSS data file.
Go to File -> Open -> Data -> T:\spss266\honolulu2.sav.
Go to File ->Save AS -> A:\honolulu.sav (the .sav is added by SPSS).
Open the output from lab #3.
Go to File -> Open -> Output -> T:\spss266\lab03.spo.
The maximum value of "bp" = _____________ and n = __________. The sum of the
frequencies as given in the bars is ______________.
In the histogram the highest midpoint = ___________, which indicates that the highest
endpoint is ________________.
What does the information above imply about our histogram?
Now let's play what's wrong with this picture?
Our goal last week was to make the histogram look like the one on page 31 in
Kuzma's text.
There are at least 3 differences. Can you tell me what they are?
2
SPSS labels the midpoints not the endpoints of the interval. We cannot change these.
The histogram in the book is for the blood pressure of the nonsmokers, not for all of the
subjects.
Let's select just the nonsmokers.
Go to Data -> Select Cases -> If condition is satisfied
Enter smoking = 0.
Click continue then OK.
Go to the data view of the Data Editor.
What happened to the numbers in the left most column?
Let's use the journal from last week to repeat the steps from last week on the reduced
data set.
Go to File -> Open -> Syntax -> T:\spsslab\lab3.jnl.
The dialogue box will show files of type "syntax (*.spo).
Our journal file is not a syntax file. We need to tell SPSS to look for journal files.
Enter *.jnl in the file name box then click open.
Delete all the lines of this file prior to Frequencies.
Select run then all.
The maximum value of "bp" = _____________ and n = __________.
Compare your histogram to the histogram given on page 31.
The histogram on page 31 has ____________ intervals. Count the interval 69.5 to 89.5.
The histogram generated by SPSS has __________ intervals.
Edit the histogram to make it look more like the one in the book.
Click on the histogram, then double click to open the chart editor.
Select chart -> Axis -> interval.
In the dialogue box, select custom -> define.
Replace the displayed values of the minimum and the maximum with the extreme
endpoints of the histogram on page 31..
Replace the # of intervals with the number of intervals used on page 31.
Click continue -> Ok.
Examine the two histograms.
Does the chart look like the one on page 31? Explain; be specific.
3
Let change the frequency scale.
Select chart ->Axis -> Scale
Change the increment for major divisions to 5.
Change the increment for minor divisions to 5.
Enter the frequency in each bar.
Select Format -> Bar label Style -> framed.
Click Apply all -> close.
How many people have blood pressures between 109.5 and 129.5mm of mercury? ________
Change the color of the bars.
Click on the bars ->Format ->color.
Select light gray.
Click Apply -> close.
Close the chart editor.
Go to File -> close.
In the output viewer there will be a box around the graph.
Click outside the box to remove the box.
Follow the shut-down procedure.
Turn in this lab. I will attach your output.
Download