options nodate ps=54 ls=76; data ex0605; * infile '../../../data/biostat/ex0605.dat'; infile 'C:\biostat\data\ex0605.dat'; input ethnic gender clrnc; length fethnic $8.; if ethnic=1 then fethnic='hispanic'; if ethnic=2 then fethnic='anglo'; length fgender $6.; if gender=1 then fgender='Female'; if gender=2 then fgender='Male'; run; /* Run 2-Way ANOVA - Note that the "|" in model statement has fethnic and fgender as well as interaction included in model */ proc glm; class fethnic fgender; model clrnc = fethnic|fgender; run; quit;