options nodate nonumber ps=200 ls=80 formdlim=' '; /* Example 5: Coronary Artery Disease - CMH test */ data ca; input gender $ ECG $ disease $ count; datalines; female <0.1 yes 4 female <0.1 no 11 female >=0.1 yes 8 female >=0.1 no 10 male <0.1 yes 9 male <0.1 no 9 male >=0.1 yes 21 male >=0.1 no 6 ; proc freq; weight count; tables gender*disease / nocol nopct chisq; tables gender*ECG*disease / nocol nopct cmh chisq measures; run;