TA15-1
Two-way analysis of variance (ANOVA) extends one-way ANOVA to two factors. It is more efficient to study the effects of two possible factors when combined than to do two separate one-way studies. For one, combining levels of the factors into treatments allows us to determine whether they interact.
The assumptions and conditions are the same as for one-way ANOVA; check that the standard deviations of all treatment groups are within a factor of two and that each treatment combination shows a roughly Normal shape. One way to understand the (possible) structure of the data is through means plots to show whether the two factors are (relatively) independent or interact.
Means Plots and Two-Way ANOVA
To create the means plot, as with one-way ANOVA, copy and paste the data so each treatment combination is in a separate column.
Use Data ➔ Data Analysis ➔ Descriptive Statistics.
To perform the ANOVA, use Data ➔ Data Analysis ➔ ANOVA: Two-Factor with Replication (each treatment group has more than one individual in it). Here you will need another layout of the data. One factor should be in columns and the second grouped into rows. The first row should be labels for the levels of factor A. Labels for the levels of factor B should be in the first column of the data. Further, each treatment combination must contain the same number of observations.
For more information and examples, see the Excel Video Video Technology Manuals, Means Plots and Two-Way ANOVA.
TA15-2
To create a means plot, click Graph ➔ Graph Builder.
To perform the ANOVA, select Analyze ➔ Fit Model.
For more information and examples, see the JMP Video Technology Manuals, Means Plots and Two-Way ANOVA.
To create the means plot, use Stat ➔ ANOVA ➔ Interaction Plot. Click to enter the response variable and the two factor variables into their respective boxes. Use Options if you want to add a graph title or use specific axis scaling. Click “OK.”
To perform the ANOVA, use Stat ➔ ANOVA ➔ Balanced ANOVA (assuming there are the same number of observations in each treatment group).
The Minitab Video Technology Manual, Two-Way ANOVA gives more information and an example.
TA15-3
SPSS must have numeric group identifiers. If the grouping variables are categorical, you will have to create numeric versions. Use Transform ➔ Recode into Different Variables.
To create a means plot (this can use either form of the categorical variables), use Graphs ➔ Chart Builder.
To perform the ANOVA, use Analyze ➔ General Linear Model ➔ Univariate.
The SPSS Video Technology Manuals, Means Plots and Two-Way ANOVA, give more information and examples.
To create the interaction plot, use Graphics ➔ Means Plot. Use the drop-downs to select the two factors and the response (Values) variable. If desired, add a title and y axis labeling. Click “Calculate.”
To perform the ANOVA, use Statistics ➔ ANOVA ➔ Two-Way. Use the drop-downs to select the two factors and the response (Values) variable. If desired, add a title and y axis labeling. Click “Calculate.”
TI calculators cannot do two-way ANOVA.
TA15-4
The following command form will create the interaction (means) plot:
> interaction.plot(factor1, factor2, response)
To create the ANOVA model and obtain the table of results, use the following commands:
> model=aov(Response ~ factor1 + factor2 + factor1*factor2)
> Summary(model)
The R Video Technology Manuals, Means Plots and Two-Way ANOVA, give more information and examples.