One-Way ANOVA in SPSS Statistics: Ancova
One-Way ANOVA in SPSS Statistics: Ancova
One-Way ANOVA in SPSS Statistics: Ancova
Introduction
The one-way analysis of variance (ANOVA) is used to determine whether there are
any significant differences between the means of two or more independent (unrelated)
groups (although you tend to only see it used when there are a minimum of three,
rather than two groups). For example, you could use a one-way ANOVA to
understand whether exam performance differed based on test anxiety levels amongst
students, dividing students into three independent groups (e.g., low, medium and high-
stressed students). Also, it is important to realize that the one-way ANOVA is
an omnibus test statistic and cannot tell you which specific groups were significantly
different from each other; it only tells you that at least two groups were different.
Since you may have three, four, five or more groups in your study design, determining
which of these groups differ from each other is important. You can do this using a
post-hoc test (N.B., we discuss post-hoc tests later in this guide).
NOTE: If your study design not only involves one dependent variable and one
independent variable, but also a third variable (known as a "covariate") that you want
to "statistically control", you may need to perform an ANCOVA (analysis of
covariance), which can be thought of as an extension of the one-way ANOVA. To
learn more, see our SPSS Statistics guide on ANCOVA. Alternatively, if your
dependent variable is the time until an event happens, you might need to run
a Kaplan-Meier analysis.
This "quick start" guide shows you how to carry out a one-way ANOVA using SPSS
Statistics, as well as interpret and report the results from this test. Since the one-way
ANOVA is often followed up with post-hoc tests, we also show you how to carry out
these using SPSS Statistics. However, before we introduce you to this procedure, you
need to understand the different assumptions that your data must meet in order for a
one-way ANOVA to give you a valid result. We discuss these assumptions next.
Assumptions
When you choose to analyse your data using a one-way ANOVA, part of the process
involves checking to make sure that the data you want to analyse can actually be
analysed using a one-way ANOVA. You need to do this because it is only appropriate
to use a one-way ANOVA if your data "passes" six assumptions that are required for a
one-way ANOVA to give you a valid result. In practice, checking for these six
assumptions just adds a little bit more time to your analysis, requiring you to click a
few more buttons in SPSS Statistics when performing your analysis, as well as think a
little bit more about your data, but it is not a difficult task.
Before we introduce you to these six assumptions, do not be surprised if, when
analysing your own data using SPSS Statistics, one or more of these assumptions is
violated (i.e., is not met). This is not uncommon when working with real-world data
rather than textbook examples, which often only show you how to carry out a one-
way ANOVA when everything goes well! However, don’t worry. Even when your
data fails certain assumptions, there is often a solution to overcome this. First, let’s
take a look at these six assumptions:
You can check assumptions #4, #5 and #6 using SPSS Statistics. Before doing this,
you should make sure that your data meets assumptions #1, #2 and #3, although you
don't need SPSS Statistics to do this. When moving on to assumptions #4, #5 and #6,
we suggest testing them in this order because it represents an order where, if a
violation to the assumption is not correctable, you will no longer be able to use a one-
way ANOVA (although you may be able to run another statistical test on your data
instead). Just remember that if you do not run the statistical tests on these assumptions
correctly, the results you get when running a one-way ANOVA might not be valid.
This is why we dedicate a number of sections of our enhanced one-way ANOVA
guide to help you get this right.
Example
A manager wants to raise the productivity at his company by increasing the speed at which his
employees can use a particular spreadsheet program. As he does not have the skills in-house, he
employs an external agency which provides training in this spreadsheet program. They offer 3
courses: a beginner, intermediate and advanced course. He is unsure which course is needed for
the type of work they do at his company, so he sends 10 employees on the beginner course, 10
on the intermediate and 10 on the advanced course. When they all return from the training, he
gives them a problem to solve using the spreadsheet program, and times how long it takes them
to complete the problem. He then compares the three courses (beginner, intermediate, advanced)
to see if there are any differences in the average time it took to complete the problem.
Click Analyze > Compare Means > One-Way ANOVA... on the top menu as shown below.
Published with written permission from SPSS Statistics, IBM Corporation.
Transfer the dependent variable ( Time ) into the Dependent List: box and the independent variable
( Course ) into the Factor:box using the appropriate buttons (or drag-and-drop the variables
into the boxes), as indicted in the diagram below:
Click the button. Tick the Descriptive checkbox in the –Statistics– area, as shown
below:
Published with written permission from SPSS Statistics, IBM Corporation.
NOTE: When testing for some of the assumptions of the one-way ANOVA, you will need to
tick more of these checkboxes. We take you through this, including how to interpret the output,
in our enhanced one-way ANOVA guide.
Descriptives Table
The descriptives table (see below) provides some very useful descriptive statistics,
including the mean, standard deviation and 95% confidence intervals for the
dependent variable ( Time ) for each separate group (Beginners, Intermediate and
Advanced), as well as when all groups are combined (Total). These figures are useful
when you need to describe your data.
ANOVA Table
This is the table that shows the output of the ANOVA analysis and whether we have a
statistically significant difference between our group means. We can see that the
significance level is 0.021 (p = .021), which is below 0.05. and, therefore, there is a
statistically significant difference in the mean length of time to complete the
spreadsheet problem between the different courses taken. This is great to know, but
we do not know which of the specific groups differed. Luckily, we can find this out in
the Multiple Comparisons table which contains the results of post-hoc tests.
Published with written permission from SPSS Statistics, IBM Corporation.
It is also possible to run comparisons between specific groups that you decided were
of interest before you looked at your results. For example, you might have expressed
an interest in knowing the difference in the completion time between the beginner and
intermediate course groups. This type of comparison is often called a planned contrast
or a simple custom contrast. However, you do not have to confine yourself to the
comparison between two time points only. You might have had an interest in
understanding the difference in completion time between the beginner course group
and the average of the intermediate and advanced course groups. This is called a
complex contrast. All these types of custom contrast are available in SPSS Statistics.
In our enhanced guide we show you how to run custom contrasts in SPSS Statistics
using syntax (or sometimes a combination of the graphical user interface and syntax)
and how to interpret and report the results. In addition, we also show how to "trick"
SPSS Statistics into applying a Bonferroni adjustment for multiple comparisons which
it would otherwise not do.
General