data aspirin; input group mi count @@; cards; 1 1 189 1 2 10845 2 1 104 2 2 10933 ; proc freq order=data; weight count; table group*mi / expected measures; exact or; run; ------------------------------------------------ The SAS System 12:40 Friday, May 4, 2001 5 The FREQ Procedure Table of group by mi group mi Frequency| Expected | Percent | Row Pct | Col Pct | 1| 2| Total ---------+--------+--------+ 1 | 189 | 10845 | 11034 | 146.48 | 10888 | | 0.86 | 49.14 | 49.99 | 1.71 | 98.29 | | 64.51 | 49.80 | ---------+--------+--------+ 2 | 104 | 10933 | 11037 | 146.52 | 10890 | | 0.47 | 49.54 | 50.01 | 0.94 | 99.06 | | 35.49 | 50.20 | ---------+--------+--------+ Total 293 21778 22071 1.33 98.67 100.00 Statistics for Table of group by mi Estimates of the Relative Risk (Row1/Row2) Type of Study Value 95% Confidence Limits -------------------------------------------------------------- Case-Control (Odds Ratio) 1.8321 1.4400 2.3308 Cohort (Col1 Risk) 1.8178 1.4330 2.3059 Cohort (Col2 Risk) 0.9922 0.9892 0.9953 Odds Ratio (Case-Control Study) ----------------------------------- Odds Ratio 1.8321 Asymptotic Conf Limits 95% Lower Conf Limit 1.4400 95% Upper Conf Limit 2.3308 Exact Conf Limits 95% Lower Conf Limit 1.4323 95% Upper Conf Limit 2.3539 Sample Size = 22071