Example: Testing for Differences in the Means for MPG_Highway by Car Type

In this example, you want to study the differences in the means for the number of highway miles per gallon for six car types.
To create this example:
  1. In the Tasks section, expand the Statistics folder, and then double-click One-Way ANOVA. The user interface for the One-Way ANOVA task opens.
  2. On the Data tab, select the SASHELP.CARS data set.
    Tip
    If the data set is not available from the drop-down list, click Select a table icon. In the Choose a Table window, expand the library that contains the data set that you want to use. Select the data set for the example and click OK. The selected data set should now appear in the drop-down list.
  3. Assign columns to these roles:
    Role
    Column Name
    Dependent variable
    MPG_Highway
    Categorical variable
    Type
  4. To run the task, click Submit SAS Code.
Here is a subset of the results:
Example of Tabular Output
Distribution of MPG_Highway