Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

Lesson 31

This document introduces Two-Way ANOVA, an extension of one-way ANOVA that analyzes the effects of two independent variables on a dependent variable. It discusses main effects, interactions, hypotheses, degrees of freedom, assumptions, and how to perform Two-Way ANOVA using SPSS. The document also emphasizes the importance of examining both main effects and interaction effects in factorial designs.

Uploaded by

misslaghari2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Lesson 31

This document introduces Two-Way ANOVA, an extension of one-way ANOVA that analyzes the effects of two independent variables on a dependent variable. It discusses main effects, interactions, hypotheses, degrees of freedom, assumptions, and how to perform Two-Way ANOVA using SPSS. The document also emphasizes the importance of examining both main effects and interaction effects in factorial designs.

Uploaded by

misslaghari2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Lesson 31

Two-Way ANOVA-I

Introduction to Two-Way ANOVA

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

Main Effects and Interactions

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

©copyright Virtual University of Pakistan


half worked with an audience of people who claimed to be interested in observing the experiment.
Shrauger also divided the participants into two groups on the basis of personality: those high in

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.

©copyright Virtual University of Pakistan


To construct this figure, we select one of the factors to be displayed on the horizontal axis; in this
case, the different levels of the audience factor. The dependent variable, the number of errors, is
shown on the vertical axis. The figure actually contains two separate graphs: The top line shows
the relationship between the audience factor and errors for the low-self-esteem and the bottom
line shows the relationship for the high-self-esteem participants.

The A × B interaction typically is called the “A by B” interaction. If there is an interaction


between an audience and self-esteem, it may be called the “audience by self-esteem” interaction.

Hypotheses for Two-Way (ANOVA)

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.

 Hₒ: No main effect of A

©copyright Virtual University of Pakistan


 H₁: There exists a main effect of factor A
 Hₒ: No main effect of B
 H₁: There exists a main effect of factor B
 Hₒ: No interaction
 H₁: There exists an interaction between factor A and factor B

Degrees of Freedom (df)

For two-way ANOVA, we calculate three kinds of degrees of freedom.

1. Total Degrees of Freedom (dftotal)


2. Within-Treatments Degrees of Freedom (dfwithin)
3. Between-Treatments Degrees of Freedom (dfbetween)

Assumptions for the Independent- Measures ANOVA

The independent-measures ANOVA requires the same three assumptions that were necessary for
the independent-measures t hypothesis test:

1. The observations within each sample must be independent.


2. The populations from which the samples are selected must be normal.
3. The populations from which the samples are selected must have equal variances
(homogeneity of variance).

Two-Way ANOVA in SPSS

To run two-way ANOVA we need three variables:

• Two categorical independent variables (e.g. sex: males/females; age group: young,
middle, old)
• One continuous dependent variable (e.g. optimism).

©copyright Virtual University of Pakistan


Factor B

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).

©copyright Virtual University of Pakistan


In the box of the ‘values’ we get a pop-up dialog that allows us to code the categorical variable.
Gender and Treatment conditions are coded as shown in the value labels window.

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.

©copyright Virtual University of Pakistan


To run one-way ANOVA in SPSS, from the menu at the top of the screen, click on Analyze
>General Linear Model >Univariate.

• A Univariate window opens.


• Click on the dependent, continuous variable (e.g. depression) and move it into the box
labelled Dependent Variable.

©copyright Virtual University of Pakistan


• Click on two independent, categorical variables (gender, treatment) and move these into
the box labelled Fixed Factors.

• Click on the Options button.\Click on Descriptive Statistics, Estimates of effect size


and Homogeneity tests and then Continue when finished.

• Click on the Post Hoc button.


• From the Factors listed on the left-hand side, choose the independent variable(s) you are
interested in (only if the variables have more than two levels).
• Click on the arrow button to move it into the Post Hoc Tests for section.

©copyright Virtual University of Pakistan


• Choose the test Tukey and click on Continue.

• Click on the Plots button.


• In the Horizontal Axis box, put the independent variable that has the most groups (e.g.
gender).
• In the box labelled Separate Lines, put the other independent variable (e.g. treatment).
• Click on Add.
• In the section labelled Plots, you will see the two variables listed as gender*treatment
• Click on Continue and then OK.

©copyright Virtual University of Pakistan


Assumptions of Two-Way ANOVA

The general assumptions include;

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.

©copyright Virtual University of Pakistan


• The main output from two-way ANOVA is a table labelled Tests of Between-Subjects
Effects.
• This table gives us the main effects and interaction effects.
• The first thing to do is to check for the possibility of an interaction effect (e.g., that the
influence of treatments on depression scores depends on whether the individual is male or
female).

• 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.

©copyright Virtual University of Pakistan


• In this example, the interaction effect is significant (F= 7.529, p= .018).
• This indicates that there is significant difference in the effect of treatment on depression
males and females.

©copyright Virtual University of Pakistan


• To determine whether there is a main effect for each independent variable, in the left-hand
column, find the variable (e.g., gender) and check in the column marked Sig. next to each
variable. If the value is less than or equal to .05 there is a significant main effect for that
independent variable.

• 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.

©copyright Virtual University of Pakistan


• The effect size for the independent variables is provided in the column labelled Partial
Eta Squared (e.g., treatment, p= .386).

• 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.

©copyright Virtual University of Pakistan

You might also like