data death; input defendant $ victim $ penalty $ count @@; datalines; white white yes 19 white white no 132 white black yes 0 white black no 9 black white yes 11 black white no 52 black black yes 6 black black no 97 ; run; proc freq; weight count; tables defendant*penalty/chisq all nocol nopct; tables defendant*victim/chisq all; tables victim*penalty/chisq all; tables victim*defendant*penalty /chisq cmh nocol nopct; tables victim*defendant*penalty/chisq nocol nopct; run;