***************************************************************
*                                                             *
*       Two Sample Test for Unequal Binomial Proportions      *
*                                                             *
*                                                             *
***************************************************************


insheet using  http://hedwig.mgh.harvard.edu/biostatistics/sites/default/files/public/education/tmp_sample_data.csv

tab diabetes gender, chi2 exact


********************************** ANNOTATED RESULTS **********************************


           |        gender
  diabetes |         0          1 |     Total
-----------+----------------------+----------
         0 |        13         30 |        43 
         1 |         3         14 |        17 
-----------+----------------------+----------
     Total |        16         44 |        60 

          Pearson chi2(1) =   0.9868   Pr = 0.321
           Fisher's exact =                 0.518
   1-sided Fisher's exact =                 0.256

.