data cancer; input smoke cancer count @@; cards; 1 1 83 1 2 72 2 1 3 2 2 14 ; proc freq order=data; weight count; tables smoke*cancer / chisq expected measures; run; The SAS System 18:42 Tuesday, May 4, 1999 1 TABLE OF SMOKE BY CANCER SMOKE CANCER Frequency| Expected | Percent | Row Pct | Col Pct | 1| 2| Total ---------+--------+--------+ 1 | 83 | 72 | 155 | 77.5 | 77.5 | | 48.26 | 41.86 | 90.12 | 53.55 | 46.45 | | 96.51 | 83.72 | ---------+--------+--------+ 2 | 3 | 14 | 17 | 8.5 | 8.5 | | 1.74 | 8.14 | 9.88 | 17.65 | 82.35 | | 3.49 | 16.28 | ---------+--------+--------+ Total 86 86 172 50.00 50.00 100.00 The SAS System 18:42 Tuesday, May 4, 1999 2 STATISTICS FOR TABLE OF SMOKE BY CANCER Statistic DF Value Prob ------------------------------------------------------ Chi-Square 1 7.898 0.005 Likelihood Ratio Chi-Square 1 8.504 0.004 Continuity Adj. Chi-Square 1 6.528 0.011 Mantel-Haenszel Chi-Square 1 7.852 0.005 Fisher's Exact Test (Left) 0.999 (Right) 4.41E-03 (2-Tail) 8.82E-03 Phi Coefficient 0.214 Contingency Coefficient 0.210 Cramer's V 0.214 Statistic Value ASE ------------------------------------------------------ Gamma 0.687 0.173 Kendall's Tau-b 0.214 0.064 Stuart's Tau-c 0.128 0.044 Somers' D C|R 0.359 0.101 Somers' D R|C 0.128 0.044 Pearson Correlation 0.214 0.064 Spearman Correlation 0.214 0.064 Lambda Asymmetric C|R 0.128 0.045 Lambda Asymmetric R|C 0.000 0.000 Lambda Symmetric 0.107 0.035 Uncertainty Coefficient C|R 0.036 0.023 Uncertainty Coefficient R|C 0.077 0.047 Uncertainty Coefficient Symmetric 0.049 0.030 Estimates of the Relative Risk (Row1/Row2) 95% Type of Study Value Confidence Bounds ------------------------------------------------------ Case-Control 5.380 1.486 19.470 Cohort (Col1 Risk) 3.034 1.075 8.562 Cohort (Col2 Risk) 0.564 0.427 0.744 Sample Size = 172