Lesson 31
Lesson 31
Two-Way ANOVA-I
Previously we discussed one way ANOVA which is an experimental design having only one
independent variable. In this chapter, we will extend the analysis of variance to cover experimental
designs involving two or more independent variables.
In real life, variable rarely exists or relate to other variables in isolation. To examine more complex
situations, researchers often design research studies that include more than one independent
variable. Researchers systematically change two (or more) variables and then observe how the
changes influence another (dependent) variable. When a research study involves more than one
factor, it is called a factorial design. And when a research study examines ANOVA having exactly
two factors, it is called Two-Way ANOVA. Tow-way ANOVA means groups are defined by two
independent variables. The two independent variables in a two-factor experiment are identified as
factor A and factor B. the goal of the factorial design is to evaluate the mean differences that may
be produced by either of the factors acting independently or by the two factors working together.
This technique allows us to look at the individual and joint effect of two independent variables on
one dependent variable
The mean differences among the levels of one factor are referred to as the main effect of that factor.
When the design of the research study is represented as a matrix with one factor determining the
rows and the second factor determining the columns, then the mean differences among the rows
describe the main effect of one factor, and the mean differences among the columns describe the
main effect for the second factor.
For factorial ANOVA, we took an example of Shrauger’s study. Shrauger (1972) tested
participants on a concept-formation task. Half of the participants worked alone (no audience), and
Self-esteem and those low in self-esteem. The dependent variable for this experiment was the
number of errors on the concept formation task. Data similar to those obtained by Shrauger are
shown in Figure below. Notice that the audience had no effect on the high-self-esteem participants.
However, the low-self-esteem participants made nearly twice as many errors with an audience
as when working alone. Note that the study involves two separate factors: One factor is
manipulated by the researcher, changing from no-audience to audience, and the second factor is
self-esteem, which varies from high to low. The two factors are used to create a matrix with the
different levels of self-esteem defining the rows and the different audience conditions defining the
columns. The resulting two-by-two matrix shows four different combinations of the variables,
producing four different conditions. Thus, the research study would require four separate samples,
one for each cell, or box, in the matrix. The dependent variable for the study is the number of errors
on the concept formation task for people observed in each of the four conditions.
The real advantage of combining two factors within the same study is the ability to examine not
only the main effects but the unique effects caused by an interaction. The concept of interaction
can be defined in terms of the pattern displayed in the graph.
In ANOVA, the variable (independent or quasi-independent) that designates the groups being
compared is called a factor. The individual conditions or values that make up a factor are called
the levels of the factor. It consists of three hypothesis tests, two for main effects and one for
interaction.
The independent-measures ANOVA requires the same three assumptions that were necessary for
the independent-measures t hypothesis test:
• Two categorical independent variables (e.g. sex: males/females; age group: young,
middle, old)
• One continuous dependent variable (e.g. optimism).
Treatments
I II
3 2
8 8
9 7
Male 4 7
0 12
0 6
Factor A
2 9
Gender
Female 6 13
The following data are from a two-factor study examining the depression scores across gender
and two treatment conditions. Use an ANOVA with α=.05 for all tests to evaluate the
significance of the main effects and the interaction.
We need to create two grouping variables in the variable view of SPSS as, treatment and
gender (i.e., the independent variables).
Depression scores are entered under the variable name depression (i.e., the dependent variable).
While entering data A code is entered for the categories of independent variables as (Gender:
1=male, 2=female; Treatment: 1=treatment1, 2=treatment2) and the depression scores in the
depression column.
1. Random sampling
2. Independence of observations
3. Normal distribution (by assessing skewness, kurtosis, histogram, Q-Q plots, Shapiro-
Wilk and Kolmogorov-Smirnov tests).
Homogeneity of Variance
• Levene’s test for homogeneity of variances allows us to use the sample variances from
data to determine whether there is evidence for any differences among the population
variances.
• The Levene’s test for homogeneity of variances tests whether the variance in scores is
the same for each of the groups.
• For the assumption to be fulfilled the Sig. value should be greater than .05 and therefore
non-significant results. A significant result (Sig. value less than .05) suggests that the
variance of dependent variable across the groups is not equal.
• The Descriptive Statistics table provides the Mean scores, Std. deviations and N for
each subgroup.
• If the interaction effect is significant, the main effects cannot be interpreted easily.
• This is because, in order to describe the influence of one of the independent variables,
there is need to specify the level of the other independent variable.
• The output we need to look at is labelled gender*treatment.
• In the output shown in the table, there is no significant main effect for gender (p= 1.00)
but a significant main effect for treatment (p= .018).
• This means that males and females do not differ in terms of their depression scores, but
there is a difference in scores for treatment I and treatment II.
• ANOVA output also provides Post-hoc tests if the post hoc option is checked in the
analysis procedure since these are relevant only if we have more than two levels (groups)
of an independent variable.
• However, there is no need to look at them until you find a significant main effect or
interaction effect in the overall (omnibus) analysis of variance test.