***************************************************************
*                                                             *
*                       One-Way ANOVA                         *
*        and Confidence Intervals for Mean BMI by Race        *
*                                                             *
***************************************************************


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

anova bmi race

margins race, post



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


 

                           Number of obs =      60     R-squared     =  0.0301
                           Root MSE      = 3.76767     Adj R-squared = -0.0040

                  Source |  Partial SS    df       MS           F     Prob > F
              -----------+----------------------------------------------------
                   Model |  25.0845063     2  12.5422531       0.88     0.4189
                         |
                    race |  25.0845063     2  12.5422531       0.88     0.4189
                         |
                Residual |  809.132844    57  14.1953131   
              -----------+----------------------------------------------------
                   Total |   834.21735    59  14.1392771   




Adjusted predictions                              Number of obs   =         60

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        race |
          1  |   26.07419   .6766929    38.53   0.000      24.7479    27.40049
          2  |   26.60526    .864362    30.78   0.000     24.91114    28.29938
          3  |      24.66   1.191441    20.70   0.000     22.32482    26.99518
------------------------------------------------------------------------------