STA429/1007 Assignment 6

Quiz on Friday Feb. 9th at 12:10 p.m.


Note: This is a revised version of the assignment. The second part of the original assignment is postponed until I have a chance to do it myself. To repeat: The quiz will be only on the death penalty data. It will not have anything about the body fat data.


The Death Penalty Data

This assignment is based upon Chapter 3 of the online text and associated lecture material. Remember, the idea here is that you can test the association between two categorical variables controlling for a third variable, by producing separate tables (and associated chisquare statistics) for each value of the third variable. Then you add chisquare values and add degrees of freedom.

What about p-values? Well, you can look up critical values in just about any statistics text, but it's nicer to use software. In the following example, we add up three 2-degree-of-freedom tests and obtain the p-value with proc iml.

proc iml;
     xsq = 2.12+3.74+1.21;
     pval = 1-probchi(xsq,6);
     print "Chisquare = " xsq ", df = 6, p = " pval;

Here is the output:

                                  XSQ                     PVAL

                Chisquare =       7.07 , df = 6, p =  0.3144222

In the death penalty data, the (non-random) sample consists of prisoners in U.S. Jails (in Florida, I believe) who were convicted of first degree murder. The prisoners are either Black of White, the victims were either Black or White, and the prisoner either got the death penalty or not. If you are interested in more detail, the reference is Am. Soc. Review 1981, 46, 918-927. Of course you do not need to go to the library to do this assignment.

The data are available in the file deathpen.dat. The variables are

  1. Race of Prisoner (1=White 2=Black)
  2. Race of Victim (1=White 2=Black)
  3. Death Penalty (1=Yes 2 =No)

Please do the following.

  1. Examine all three 2-way tables, and do chisquare tests. What would you conclude?
  2. Test the association between Race of Prisoner and Death Penalty, controlling for Race of Victim. Give the value of the test statistic (a single number), the degrees of freedom and the p-value. What, if anything, do you conclude about race and the death penalty?
  3. Test the association between Race of Victim and Death Penalty, controlling for Race of Prisoner. Give the value of the test statistic (a single number), the degrees of freedom and the p-value. What, if anything, do you conclude about race and the death penalty?

Bring your log and list file to the quiz.