Note

Screenshots may differ slightly depending on software version.

Multilevel Categoric (pt 2)

Part 2 - Making Factors Numeric

Continued – A Case Study on Battery Life

In the preceding, General Factorial Tutorial – Part 1, you treated all factors categorically. The main purpose of Part 2 of this tutorial is to illustrate some of the functions built into Stat-Ease that can be used to make effects graphs better fit the type of data we’re dealing with, in addition to making the results easier to interpret and understand. We’ve already said that Montgomery’s classic battery experiment could have been handled by using the Response Surface tab and constructing a one-factor design on temperature, with the addition of one categorical factor at three levels for the material type. Never fear, we’ll cover response surface methods like this from the ground up in the Response Surface Tutorials. But to demonstrate the flexibility of Stat-Ease, let’s explore how you can make the shift from categoric to numeric after-the-fact, even within the context of a general factorial design.

To get started, re-open the file named Battery.dxpx saved earlier. If the file is already open, then click the Design node.

Changing a Factor from Categoric to Numeric

Right-click on the B:Temperature factor column heading, and select Make Numeric then Continuous Numeric. (The “discrete” option could also work in this case. It works well for numeric factors that for convenience-sake must be set at specific levels. For example, imagine that the testing chamber for the batteries has only three settings – 15, 70 and 125.)

../../_images/gen-factorial-2-1.PNG

Options for editing a factor

The software pops up a warning not to do this if the factor really is categorical. To acknowledge it and move on, click the OK button below the message.

../../_images/gen-factorial-2-2.PNG

Warning message

Re-Analyzing the Results

To re-analyze your data, click the analysis node labeled Life. Then click Start Analysis and then the Model tab. When you designated a factor being numeric, the program automatically shifted to fitting a polynomial, such as those used for response surface methods. To model non-linear response to temperature (factor B), double-click the AB2 term, or via a right click add it to the Model as shown below. (Squared terms capture curvature.)

../../_images/gen-factorial-2-3.PNG

Model selection screen

Click the ANOVA tab. You will get a warning about hierarchy.

../../_images/gen-factorial-2-4.PNG

Hierarchy warning

This warning arises because you chose a higher order term without support by parent terms, in this case: AB and B2. Click Yes and move on.

Note

Statistical reasons for maintaining model hierarchy: For details, search out the topic on “Model Hierarchy Check” in the Help System.

The ANOVA report now displays in the view (annotated or not) that you used last. By comparing this output with the ANOVA done in Part One, observe that the lines for the model and residual come out the same, but the terms involving B differ. In Part One we treated factor B (temperature) categorically, although in an ordinal manner. Now that this factor is recognized explicitly as numeric, what was the effect of B is now broken down to two model terms – B and B2, and AB becomes AB plus AB2.

../../_images/gen-factorial-2-5.PNG

ANOVA output

The whole purpose of this exercise is to make a better looking effects graph. Let’s see what this looks like by clicking the Model Graphs tab. Go to the Factors Tool on the right, right-click the box next to B:Temperature and change it to the X1 Axis.

../../_images/gen-factorial-2-6.PNG

Viewing the interaction with temperature on X-axis

Note

The points are turned off on the screenshot shown above. By default they are displayed. To change this, right-click the graph, choose Graph Preferences and go to “Show design points”.

You now have a plot characterizing the data from Part One of this case study, except that the above lines are now continuous with temperature, whereas in Part One they were displayed as discrete (categorical) segments. Notice that the curves by temperature (modeled by B) depend on the type of material (A). This provides graphical verification of the significance of the AB2 term in the model.

The dotted lines are the confidence bands, which in this case cause more trouble than they’re worth for conveying the uncertainty in fitting, so let’s change Graph Preferences to take these off. First, right-click the graph and select Graph Preferences. Now move to the XY Graphs section and find Polynomial: L SD bars or bands, then select the None option as shown below.

../../_images/gen-factorial-2-7.PNG

Turning off confidence bands

Note

The same can be done by turning off “Display confidence bands”.

Press OK. That cleans up the picture, but perhaps too much! Let’s put the points back on for perspective. Again, right-click over the graph and select Graph Preferences. Now, under the All Graphs section, turn on (check) the Show design points option.

../../_images/gen-factorial-2-8.PNG

Showing design points

Your plot should now look like that copied out below. (Note: if you don’t have the A1, A2, and A3 labels, remove the legend from your graph by going to View->Show legend).

../../_images/gen-factorial-2-9.PNG

Presentation of battery life made of various materials versus temperature on continuous scale

The conclusions remain the same as before: Material A3 will maximize battery life with minimum variation in ambient temperature. However, by treating temperature numerically, predictions can be made at values between those tested. Of course, these findings are subject to confirmation tests.

Postscript: Demo of “Pop out” View

Before exiting, give this a try: Go to View and select Pop-Out View.

../../_images/gen-factorial-2-10.PNG

Pop-Out View

This pushes the current graph out of its fixed Windows pane into a ‘clone’ that floats around on your screen. Now on the original Factors Tool right click the box next to A:Material and return it to the X1 Axis. Then do an Alt-Tab to bring back the clone of the previous view back on your current window.

../../_images/gen-factorial-2-11.PNG

Two ways of viewing the battery life results

You can present Stat-Ease outputs both ways for your audience:

  • Curves for each material as a function of temperature on the X1 axis, or

  • Two temperature lines connected to the three discrete materials as X1.

Another way to capture alternative graphs is to copy and paste them into a word processor, spreadsheet, or presentation program. Then you can add annotations and explanations for reporting purposes.

../../_images/gen-factorial-2-12.PNG