4.3. A Three-Way Table
As we’ve just seen, using GENMOD to estimate a logit model for a 2 × 2 table doesn’t tell you much more than you would get with PROC FREQ. But with a 3-way table, things get more interesting.
Let’s analyze Table 4.2 as a logit model, with intercourse as the dependent variable and race and sex as independent variables. Using the events/trials syntax in GENMOD, we have:
DATA interco; INPUT white male yes ...