Chi-square test of homogeneity for Lottery Data          1
                                    13:10 Friday, September 22, 2017

                         The FREQ Procedure

                        Table of ball by set

       ball      set

       Frequency|
       Expected |       1|       2|       3|       4|  Total
       ---------+--------+--------+--------+--------+
              0 |     13 |     22 |     12 |     16 |     63
                |  15.75 |  15.75 |  15.75 |  15.75 |
       ---------+--------+--------+--------+--------+
              1 |     11 |      8 |     10 |      7 |     36
                |      9 |      9 |      9 |      9 |
       ---------+--------+--------+--------+--------+
              2 |     16 |      7 |     14 |     12 |     49
                |  12.25 |  12.25 |  12.25 |  12.25 |
       ---------+--------+--------+--------+--------+
              3 |     11 |      8 |     10 |     14 |     43
                |  10.75 |  10.75 |  10.75 |  10.75 |
       ---------+--------+--------+--------+--------+
              4 |      5 |     19 |     11 |     15 |     50
                |   12.5 |   12.5 |   12.5 |   12.5 |
       ---------+--------+--------+--------+--------+
              5 |     12 |     20 |     10 |      5 |     47
                |  11.75 |  11.75 |  11.75 |  11.75 |
       ---------+--------+--------+--------+--------+
              6 |     12 |     10 |     20 |     10 |     52
                |     13 |     13 |     13 |     13 |
       ---------+--------+--------+--------+--------+
              7 |     19 |     11 |     12 |     21 |     63
                |  15.75 |  15.75 |  15.75 |  15.75 |
       ---------+--------+--------+--------+--------+
              8 |      5 |      6 |     12 |     11 |     34
                |    8.5 |    8.5 |    8.5 |    8.5 |
       ---------+--------+--------+--------+--------+
              9 |     16 |      9 |      9 |      9 |     43
                |  10.75 |  10.75 |  10.75 |  10.75 |
       ---------+--------+--------+--------+--------+
       Total         120      120      120      120      480


                Statistics for Table of ball by set

       Statistic                     DF       Value      Prob
       ------------------------------------------------------
       Chi-Square                    27     46.6100    0.0109
       Likelihood Ratio Chi-Square   27     47.1096    0.0096
       Mantel-Haenszel Chi-Square     1      0.0245    0.8755
       Phi Coefficient                       0.3116          
       Contingency Coefficient               0.2975          
       Cramer's V                            0.1799          

                         Sample Size = 480
          Chi-square test of homogeneity for Prostate Data         2
                                    13:10 Friday, September 22, 2017

                         The FREQ Procedure

                        Table of rx by alive

                rx        alive

                Frequency|
                Expected |       0|       1|  Total
                ---------+--------+--------+
                       1 |     44 |      9 |     53
                         | 39.874 | 13.126 |
                ---------+--------+--------+
                       2 |     41 |     11 |     52
                         | 39.121 | 12.879 |
                ---------+--------+--------+
                       3 |     35 |     20 |     55
                         | 41.379 | 13.621 |
                ---------+--------+--------+
                       4 |     41 |     13 |     54
                         | 40.626 | 13.374 |
                ---------+--------+--------+
                Total         161       53      214


                Statistics for Table of rx by alive

       Statistic                     DF       Value      Prob
       ------------------------------------------------------
       Chi-Square                     3      6.0722    0.1081
       Likelihood Ratio Chi-Square    3      5.9080    0.1162
       Mantel-Haenszel Chi-Square     1      1.9014    0.1679
       Phi Coefficient                       0.1684          
       Contingency Coefficient               0.1661          
       Cramer's V                            0.1684          

                         Sample Size = 214
         Fisher exact test for Prostate Data, dose 2 levels        3
                                    13:10 Friday, September 22, 2017

                         The FREQ Procedure

                       Table of dose by alive

                dose      alive

                Frequency|
                Expected |       0|       1|  Total
                ---------+--------+--------+
                 low     |     44 |      9 |     53
                         | 39.874 | 13.126 |
                ---------+--------+--------+
                high     |    117 |     44 |    161
                         | 121.13 | 39.874 |
                ---------+--------+--------+
                Total         161       53      214


               Statistics for Table of dose by alive

       Statistic                     DF       Value      Prob
       ------------------------------------------------------
       Chi-Square                     1      2.2916    0.1301
       Likelihood Ratio Chi-Square    1      2.4276    0.1192
       Continuity Adj. Chi-Square     1      1.7698    0.1834
       Mantel-Haenszel Chi-Square     1      2.2809    0.1310
       Phi Coefficient                       0.1035          
       Contingency Coefficient               0.1029          
       Cramer's V                            0.1035          


                        Fisher's Exact Test
                 ----------------------------------
                 Cell (1,1) Frequency (F)        44
                 Left-sided Pr <= F          0.9586
                 Right-sided Pr >= F         0.0893
                                                   
                 Table Probability (P)       0.0479
                 Two-sided Pr <= P           0.1458

                         Sample Size = 214


                Summary Statistics for dose by alive

    Cochran-Mantel-Haenszel Statistics (Based on Table Scores)
 
  Statistic    Alternative Hypothesis    DF       Value      Prob
  ---------------------------------------------------------------
      1        Nonzero Correlation        1      2.2809    0.1310
      2        Row Mean Scores Differ     1      2.2809    0.1310
      3        General Association        1      2.2809    0.1310


         Estimates of the Common Relative Risk (Row1/Row2)
 
          Type of Study     Method                  Value
          -----------------------------------------------
          Case-Control      Mantel-Haenszel        1.8386
            (Odds Ratio)    Logit                  1.8386

          Cohort            Mantel-Haenszel        1.1424
            (Col1 Risk)     Logit                  1.1424

          Cohort            Mantel-Haenszel        0.6214
            (Col2 Risk)     Logit                  0.6214

   Type of Study     Method                95% Confidence Limits
   -------------------------------------------------------------
   Case-Control      Mantel-Haenszel         0.8291       4.0771
     (Odds Ratio)    Logit                   0.8291       4.0771

   Cohort            Mantel-Haenszel         0.9791       1.3330
     (Col1 Risk)     Logit                   0.9791       1.3330

   Cohort            Mantel-Haenszel         0.3256       1.1859
     (Col2 Risk)     Logit                   0.3256       1.1859


                      Total Sample Size = 214
              Cochran-Armitage Test for Prostate Data              4
                                    13:10 Friday, September 22, 2017

                         The FREQ Procedure

                Statistics for Table of rx by alive

                    Cochran-Armitage Trend Test
                    ---------------------------
                    Statistic (Z)       -1.3821
                    One-sided Pr <  Z    0.0835
                    Two-sided Pr > |Z|   0.1669

                         Sample Size = 214