Biostatistics Homework 6

From: https://onlinecourses.science.psu.edu/stat504/book/export/html/102:

"Radlet (1981) studied effects of racial characteristics on whether individuals convicted of homicide received the death penalty. The 326 subjects were defendants in homicide indictments in 20 Florida counties during 1976-1977 (from Agresti (1990))."

The raw data is below.

  1. Run a Chi Square test of whether the death penalty is handed out independently of the race of the defendant.
  2. Do it again separately for each type of defendent based on the race of the victim. Is a Chi-Square test appropriate for both tables?
  3. Do some kind of combined analysis such as the Mantel Haenszel test or logistic regression. Are there problems with conducting either test on these data apart from the fact that the data are observational?
Raw Binary Data for the death penalty: 1 means yes and 0 means no.
Defendant_white?	Victim_white?	Death_penalty?
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	1
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
1	1	0
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