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; tables group*mi / chisq expected measures; proc genmod; model count = group mi / dist=poi link=log obstats; run; The SAS System 21:44 Monday, November 18, 1996 1 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 The SAS System 21:44 Monday, November 18, 1996 2 STATISTICS FOR TABLE OF GROUP BY MI Statistic DF Value Prob ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Chi-Square 1 25.014 0.001 Likelihood Ratio Chi-Square 1 25.372 0.001 Continuity Adj. Chi-Square 1 24.429 0.001 Mantel-Haenszel Chi-Square 1 25.013 0.001 Fisher's Exact Test (Left) 1.000 (Right) 3.25E-07 (2-Tail) 5.03E-07 Phi Coefficient 0.034 Contingency Coefficient 0.034 Cramer's V 0.034 Statistic Value ASE ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Gamma 0.294 0.056 Kendall's Tau-b 0.034 0.007 Stuart's Tau-c 0.008 0.002 Somers' D C|R 0.008 0.002 Somers' D R|C 0.147 0.028 Pearson Correlation 0.034 0.007 Spearman Correlation 0.034 0.007 Lambda Asymmetric C|R 0.000 0.000 Lambda Asymmetric R|C 0.008 0.002 Lambda Symmetric 0.008 0.002 Uncertainty Coefficient C|R 0.008 0.003 Uncertainty Coefficient R|C 0.001 0.000 Uncertainty Coefficient Symmetric 0.002 0.001 The SAS System 21:44 Monday, November 18, 1996 3 Estimates of the Relative Risk (Row1/Row2) 95% Type of Study Value Confidence Bounds ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Case-Control 1.832 1.440 2.331 Cohort (Col1 Risk) 1.818 1.433 2.306 Cohort (Col2 Risk) 0.992 0.989 0.995 Sample Size = 22071 The SAS System 21:44 Monday, November 18, 1996 4 The GENMOD Procedure Model Information Description Value Data Set WORK.ASPIRIN Distribution POISSON Link Function LOG Dependent Variable COUNT Observations Used 4 Criteria For Assessing Goodness Of Fit Criterion DF Value Value/DF Deviance 1 25.3720 25.3720 Scaled Deviance 1 25.3720 25.3720 Pearson Chi-Square 1 25.0139 25.0139 Scaled Pearson X2 1 25.0139 25.0139 Log Likelihood . 181827.7802 . Analysis Of Parameter Estimates Parameter DF Estimate Std Err ChiSquare Pr>Chi INTERCEPT 1 0.6781 0.1188 32.6018 0.0001 GROUP 1 0.0003 0.0135 0.0004 0.9839 MI 1 4.3085 0.0588 5366.7635 0.0001 SCALE 0 1.0000 0.0000 . . NOTE: The scale parameter was held fixed. Observation Statistics COUNT Pred Xbeta Std HessWgt Lower Upper Resraw 189 146.4801 4.9869 0.0588 146.4801 130.5335 164.3749 42.5199 10845 10888 9.2954 0.009552 10888 10686 11093 -42.5199 104 146.5200 4.9872 0.0588 146.5200 130.5690 164.4195 -42.5200 10933 10890 9.2956 0.009551 10890 10689 11096 42.5199 The SAS System 21:44 Monday, November 18, 1996 5 Observation Statistics Reschi Resdev 3.5132 3.3610 -0.4075 -0.4078 -3.5127 -3.7072 0.4074 0.4072