# SPSS Exercises

**SPSS:**

- Take a look again at the distribution of life satisfaction (RA1SR1), this time with what is called a
*frequency distribution.*

- Click Analyze/Descriptive Statistics/Frequencies.
- Highlight RA1SR1 and click on the arrow that sends it over to the Variables window, then click OK.

- Examine the percentages in the Valid percent column. What percentage of the U.S. population responded that they had “the best possible life overall?”
- Now select random samples of the MIDUS2011 respondents:

- Go to the Data Editor window and select a random sample containing 40 of the respondents. From the menu:

b. Click Data/Select cases/Random sample of cases.

c. Choose*S*ample.

d. For “Sample Size,” choose Exactly and then enter*40*cases from the first*100*cases.

e. Click Continue/OK. (Before you click OK, be sure that the “Filter out unselected cases” box is checked.)

f. Determine the percentage of the subsample that rated their life as “the best possible life overall.” Record the percentage.

- Click on Graphs.
- Click on Legacy Dialogs > Bar.
- Select “Simple” and “Summaries for groups of cases” under Data in Chart Area > Define.
- Place the RA1SR1 variable in the box below “Category Axis:” and select “% of cases” under “Bar Represent.”
- Click OK.

- Now, repeat Steps 3a through 3f 10 times. Each time, add 100 to the “first 100 cases” request (so that on the last step you will be requesting “Exactly 40 cases from the first 1,000 cases”).
- Now, plot the percentages (for “best possible life”) on a graph. Remember that the horizontal axis (
*x*) should go from 0 to 100 in increments of 10 and the vertical axis (*y*) indicates the number of samples at each point.

- Go to the Data Editor window and select a random sample containing 40 of the respondents. From the menu:
- Select a random sample containing five of the respondents. Now repeat Steps 3a through 3f (10 times), this time for samples of five.

- Now, plot the percentages (for “best possible life”) on a graph.

- How does the distribution of RA1SR1 in these subsamples compare with that of the total MIDUS2011 sample? How do they compare to each other?

**Online Analysis:**

- Take a look again at the distribution of life satisfaction (RA1SR1), this time with what is called a
*frequency distribution.*

- In the online analysis tool, type RA1SR1 into “row.”
- Under TABLE OPTIONS, select column percent, confidence intervals, and summary statistics
- Under CHART OPTIONS, select “no chart.”

- Examine the percentages in the Valid percent column. What percentage of the U.S. population responded that they had “the best possible life overall?”
- Now let’s use the selection filter to create a sample of these respondents. Let’s just look at the White participants in this study.

- Type RA1PF8A1(1) into the “selection filters” box and repeat Questions 1–2.

- Now let’s just look at African American participants. Type RA1PF8A(2) into the “selection filters” box and repeat Questions 1–2.
- How does the distribution of RA1SR1 in these two subsamples compare with that of the total MIDUS2011 sample?