***************************************************************
*                                                             *
* One Sample T-test and Confidence Interval for the Mean      *
* Comparing Mean BMI to 21.7, the Center of the Normal Range  *
*                                                             *
***************************************************************



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

ttest bmi=21.7





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

                               

One-sample t test
------------------------------------------------------------------------------
Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
     bmi |      60    26.00667    .4854427    3.760223     25.0353    26.97804
------------------------------------------------------------------------------
    mean = mean(bmi)                                              t =   8.8716
Ho: mean = 21.7                                  degrees of freedom =       59

   Ha: mean < 21.7             Ha: mean != 21.7               Ha: mean > 21.7
 Pr(T < t) = 1.0000         Pr(|T| > |t|) = 0.0000          Pr(T > t) = 0.0000