14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

294 Interactive Data Visualization Chapter 10<br />

Additional Examples Using Graph Builder<br />

You can clearly see the countries that consume the most oil at the top of the graph. You can also see each<br />

country’s oil production.<br />

Analyze Popcorn Yield<br />

You have data about popcorn. The data includes popcorn type (plain or gourmet), how much oil was used,<br />

the batch size (small or large), the yield, <strong>and</strong> the trial number. You want to determine how these factors<br />

affect the popcorn yield: popcorn type, oil, <strong>and</strong> batch size.<br />

Note: These data are artificial, but inspired from an experiment reported in Box, Hunter, <strong>and</strong> Hunter<br />

(1978).<br />

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

2. Run the attached Fit Model script attached to the data table by clicking on the red triangle next to Fit<br />

Model <strong>and</strong> select Run Script.<br />

A three-way ANOVA model is fit to the data.<br />

3. Click on the disclosure icon next to Effect Tests to open the report.<br />

The popcorn*batch interaction has a small p-value (0.0026). From this, you conclude that there is a<br />

significant interaction between popcorn <strong>and</strong> batch.<br />

Figure 10.32 Example of Effect Tests Output<br />

4. Save the model predictions to the data table. From the red triangle menu next to Response yield, select<br />

Save Columns > Prediction Formula. See Figure 10.33.<br />

Notice that a new column is added to the data table, Pred Formula yield.<br />

5. Save the prediction intervals to the data table. From the red triangle menu next to Response yield, select<br />

Save Columns > Mean Confidence Interval. See Figure 10.33.<br />

Notice that two new columns are added to the data table: Lower 95% Mean yield <strong>and</strong> Upper 95%<br />

Mean yield.

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

Saved successfully!

Ooh no, something went wrong!