Excel has a weird name for contingency tables; it calls them "pivot tables."
To begin the construction of a pivot table, first click in an empty cell somewhere
to the right of the data in your worksheet. Next,
you'll find the Pivot Table option about half way down the list of menu items under
the Data option on the top menu bar in Excel. When you take the Pivot Table
option, you'll see Step 1 of $ of the Pivot Table Wizard; just click on Next at the
bottom. You next see Step 2 that looks like this:
The above is the dialogue box for entering the location of the data that you
will want to tabulate in a contingency table. The easiest thing to do is to
enter a description of the location of all the data in your worksheet, e.g.,
for the High School & Beyond worksheet that you downloaded, the data occupy
a rectangular area from Row 4, Column A to Row 603, Column O. Please Note: Excel uses your
variable names as well in creating a contingency table; notice that the HSB variables names are
in Row 3. So you must enter the following code into the dialogue box: a3:o603.
Now click on the Next button.
Now you should see the dialog box below, called Step 3 of 4. This is the box where
most of the action takes place.
The Step 3 dialogue box is where you choose which variable will constitute the rows
of your contingency table and which variable will be the columns. Observe the labels
for the variables off to the right side.
-
Click and drag a variable for rows--e.g.,
Sex. Drag the label to the left and drop it in the tall rectangle named ROW.
-
Now, click, drag and drop the label for School Ty(pe) into the horizontal rectangle
named COLUMN.
- Finally, click and drag either the Sex or the School Type label from the
list of variables on the right and drop it into the center box named DATA.
- If the label you have just dropped into the DATA box suddenly changes its
name to "Count of School Type" or "Count of Sex," you are in good shape. If, however,
its name becomes something like "Sum of School Type" or "Sum of Sex," you will
need to double click that label and pick the Count option.
When the Step 3 dialogue box looks like the example below, you are ready to
click on the Finish button:
Clicking on the Finish button in the Step 3 dialogue box will produce the following
pivot table (contingency table) results:
Observe what we learn from this: 53 out of 327 females in the High School & Beyond
sample attended private schools,
whereas 41 out of 273 males went to private schools.
This is very informative and would have taken a long time to tally by hand, but
there is much more we can learn about this issue when we look at proportions or
percents.
Let's click on another empty cell in the worksheet and select the Pivot Table option
again from the Data menu. Now, after arranging the Step 3 dialogue box as above and
before clicking on the Finish button, let's double click the small variabe label that
reads "Count of School Type" (or "Count of Sex"). A dialogue like the one below will
appear.

From among the five buttons on the right of the box below, click on the
Options >> button. When you then click on the tiny arrow beside the box that
reads "Show Data as:" you will see a list of choices. Pick the item that
reads "% of column." Then following contingency table will result:

This contingency table is even more easily interpreted. Among all Private school
students who finished high school, 56% are female; among all Public school students
who finished high school, 54% are female. Thus, the percents of Private and Public
school graduates who are female are nearly the same. In statistical jargon, we would say,
"There is no association between Sex and School Type." (If the results had proven to
be something like 70% of Private school grads are female and only 40% of Public school
grads are female, we would have concluded that Sex and School Type are associated.)
One final word about contingency tables: we don't construct contingency
tables from data that are measured like height and weight or age or the test score
data in the High School & Beyond worksheet. Contingency tables describe the
relationships between nominally measured variables.
Assignment 5
Use this form to complete Assignment #5 and submit
your work.
home |
online calc. |
lesson:
one |
two |
three |
four |
five |
six