14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

122 Performing Bivariate <strong>Analysis</strong> Chapter 4<br />

Additional Examples of the Bivariate Platform<br />

slope of the fitted line shifts closer to the Y by X fit. Likewise, when you decrease the ratio, the slope of the<br />

line shifts closer to the X by Y fit.<br />

Example of Group By Using Density Ellipses<br />

This example uses the Hot Dogs.jmp sample data table. The Type column identifies three different types of<br />

hot dogs: beef, meat, or poultry. You want to group the three types of hot dogs according to their cost<br />

variables.<br />

1. Open the Hot Dogs.jmp sample data table.<br />

2. Select Analyze > Fit Y by X.<br />

3. Select $/oz <strong>and</strong> click Y, Response.<br />

4. Select $/lb Protein <strong>and</strong> click X, Factor.<br />

5. Click OK.<br />

6. From the red triangle menu, select Group By.<br />

7. From the list, select Type.<br />

8. Click OK. If you look at the Group By option again, you see it has a check mark next to it.<br />

9. From the red triangle menu, select Density Ellipse > 0.90.<br />

To color the points according to Type, proceed as follows:<br />

10. Right-click on the scatterplot <strong>and</strong> select Row Legend.<br />

11. Select Type in the column list <strong>and</strong> click OK.<br />

Figure 4.23 Example of Group By<br />

The ellipses in Figure 4.23 show clearly how the different types of hot dogs cluster with respect to the cost<br />

variables.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!