UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

Stata Textbook Examples
Design and Analysis by Geoffrey Keppel
Chapter 3: Variance Estimates and Evaluation of the F Ratio

Page 59 of Keppel illustrates a one way Analysis of Variance. This example compares the number of errors (failures) for 4 different treatment groups who differed in their level of sleep deprivation (indicated by the variable a). The analysis is shown below using the anova command.
use http://www.ats.ucla.edu/stat/stata/examples/da/chap3, clear

anova failures a

                           Number of obs =      16     R-squared     =  0.6473
                           Root MSE      = 12.2661     Adj R-squared =  0.5592

                  Source |  Partial SS    df       MS           F     Prob > F
              -----------+----------------------------------------------------
                   Model |     3314.25     3     1104.75       7.34     0.0047
                         |
                       a |     3314.25     3     1104.75       7.34     0.0047
                         |
                Residual |     1805.50    12  150.458333   
              -----------+----------------------------------------------------
                   Total |     5119.75    15  341.316667   

How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California