4.2. A Logit Model for a 2 × 2 Table
If we have access to the individual-level data, we can simply estimate a logit model directly, as with the following GENMOD program:
PROC GENMOD DATA=my.penalty; MODEL death = blackd / D=B; RUN;
Results are shown in Output 4.1. Exponentiating the BLACKD coefficient yields 1.47, which is the odds ratio we calculated earlier, directly from the table. It is not statistically significant.