***************************************************************
*                                                             *
*          Hypothesis test for increasing odds ratio          *
*                  logistic regression                        *
*                                                             *
***************************************************************


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

logistic diabetes age



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


Logistic regression                               Number of obs   =         60
                                                  LR chi2(1)      =       2.29
                                                  Prob > chi2     =     0.1306
Log likelihood =  -34.62159                       Pseudo R2       =     0.0320

------------------------------------------------------------------------------
    diabetes | Odds Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         age |   .9687641   .0207767    -1.48   0.139     .9288866    1.010354
       _cons |   1.672862   1.658828     0.52   0.604     .2395517     11.6821
------------------------------------------------------------------------------