4.5. A Four-Way Table with Ordinal Explanatory Variables

Next we consider a 2 × 2 × 4 × 4 table, reported by Sewell and Shah (1968), for a sample of 4,991 high school seniors in Wisconsin. The dependent variable was whether or not they planned to attend college in the following year. The three independent variables were coded as follows:

IQ1=low, 2=lower middle, 3=upper middle, 4=high
SES1=low, 2=lower middle, 3=upper middle, 4=high
PARENT1=low parental encouragement, 2=high encouragement.

Below is a DATA step to read in the table. There is one record for each combination of the independent variables. The fourth variable TOTAL is the number of students who had each set of values for the independent variables, and the last variable COLL is the ...

Get Logistic Regression Using SAS®: Theory and Application now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.