One-Way ANOVA and Post-Hoc Tests in PSPP (SPSS): Run, Read and Report
Run a one-way ANOVA in PSPP or SPSS, choose Tukey, Games-Howell or Bonferroni, compute Welch’s ANOVA and eta squared and test a trend
Key takeaways
Six separate t-tests across four groups raise the chance of at least one false positive to 26.5%; one F test followed by post-hoc tests keeps it at 5%.
Income has a small effect on repurchase intention: F(3, 261) = 2.89, p = .036, eta² = 0.032, omega² = 0.021.
PSPP prints neither Welch's ANOVA nor eta squared, but syntax can compute both; Welch's ANOVA gives p = .050 and Kruskal-Wallis gives p = .038.
Only one pair of adjacent income groups differs, and a linear trend contrast finds no trend at all (p = .998).
A result at the threshold with no theoretical pattern should be reported as exploratory, together with every demographic test you ran.
Post 17, "T-Tests in PSPP (SPSS)" compared the means of two groups with a t-test. When the grouping variable has three or more groups (four income bands, four occupations, five regions), the right tool is one-way analysis of variance (one-way ANOVA). ANOVA answers the question: does at least one group have a mean that differs from the others? If it does, post-hoc tests tell you exactly which groups differ from which.
This post uses the sample data set (marketplace_x_analysis.sav) to answer one question: does the intention to buy again on Marketplace X differ by monthly income? All results come from the syntax file anova.sps from the GitHub repository of this post, run in PSPP (Free Software Foundation, 2026), and they are cross-checked in Python (check_python.py). This time the result sits right at the significance threshold: some tests give p below 0.05, and one gives p = 0.050 exactly. The post keeps those numbers as they are and uses them to show how to interpret such a result with care.
Sample data and scripts. The data files and scripts for this post are in the research-data-analysis repository on GitHub (folder
data/andscripts/). Download the whole repository with Code > Download ZIP.
About the screenshots and output. Figures 3 to 7 are real screenshots of PSPP 2.1.2 on macOS (Apple silicon Mac), taken in November 2026 with the data file
marketplace_x_analysis.sav(in thedata/folder of the repository). Figures 2, 8, 10 and 12 to 14 are real output of the syntax fileanova.sps(in thescripts/folder), run in PSPP 2.1.2 and exported from the Output Viewer (File > Export > PDF). Tables that run over two pages of the export are joined; no value is changed. Figures 1, 9 and 11 are drawn with Python.
1. Why not run several t-tests?
Four income groups give 6 pairs to compare. If you run 6 separate t-tests, each one has a 5% chance of wrongly concluding that there is a difference (a Type I error). The probability of at least one wrong conclusion across the 6 tests is 1 − 0.95 to the power of 6 = 26.5% (Field, 2024).

ANOVA solves this problem with a single F test for all the groups at once. The post-hoc tests then compare the groups pair by pair, but with an adjustment that keeps the overall Type I error at 5%.
2. Assumptions and checks before you run it
One-way ANOVA has the same assumptions as the independent-samples t-test (Post 17):
Check that the dependent variable is quantitative. RI is the mean of four Likert items and is treated as a quantitative variable.
Check that the groups are independent. Each respondent belongs to only one income group.
Check that the distribution in each group is not too skewed. ANOVA is fairly robust to non-normality when each group has about 20 to 30 people or more. The "$3,000 or more" group has only 26 people, so look carefully at its box plot.
Check the group variances. Read Levene's test, and also run Welch's ANOVA as a cross-check (Section 6).
To draw box plots by group, choose Analyze > Descriptive Statistics > Explore, move RI into the Dependent List and INCOME into the Factor List and choose Plots > Boxplots. The matching syntax is:
EXAMINE VARIABLES=RI BY INCOME /PLOT=BOXPLOT /STATISTICS=NONE.
The four boxes have similar heights, which suggests similar variances. There are a few low outliers in the first three groups (labels 242, 211, 126 and 228; as in Post 17, these are row numbers, which correspond to response IDs 271, 236, 139 and 256), but only one or two people in each group. The $2,000 to under $3,000 group has a clearly higher median (4.25, against 3.75 to 4.00 in the other groups).
3. Run a one-way ANOVA in PSPP
Open Analyze > Compare Means > One Way ANOVA (Figure 3).
Move RI into the Dependent Variable(s) box and INCOME into the Factor box (Figure 4).
Tick Descriptives and Homogeneity under Statistics to get the descriptive table and Levene's test.
Click Post-Hoc and choose the post-hoc tests Bonferroni, Games Howell and Tukey HSD, then click Continue (Figure 5).
Click Contrasts if you want to test a specific hypothesis. Here, type the coefficients −3, −1, 1 and 3 one at a time into the Coefficients box, clicking Add after each, then click Continue (Figure 6). The Coefficient Total box should show 0. Section 7 explains what this set of coefficients means.
Click Paste to get the syntax (Figure 7), or OK to run the analysis at once.




The pasted syntax lists the post-hoc tests in the order of the dialog (BONFERRONI GH TUKEY). The anova.sps file uses the order below, so the output shows Tukey first; the order does not change any result:
ONEWAY /VARIABLES=RI BY INCOME
/STATISTICS=DESCRIPTIVES HOMOGENEITY
/POSTHOC=TUKEY BONFERRONI GH
/CONTRAST=-3 -1 1 3.4. Read the ANOVA results

Read the output in four steps:
Read the Descriptives table (box 1). Mean RI: under $1,000, 3.90 (n = 72); $1,000 to under $2,000, 3.71 (n = 89); $2,000 to under $3,000, 4.03 (n = 78); $3,000 or more, 3.79 (n = 26). Two respondents who did not answer the RI items are left out, so 265 remain.
Read Levene's test (box 2). F(3, 261) = 0.33, p = 0.803: there is no evidence that the group variances differ.
Read the ANOVA table (boxes 3 and 4). The sum of squares between groups (Between Groups) is 4.51; within groups (Within Groups) it is 135.74. F(3, 261) = 2.89, p = 0.036.
Draw a first conclusion. At least one income group has a mean intention to buy again that differs from the others.
Compute the effect sizes eta squared and omega squared
The value p = 0.036 does not tell you how large the difference is. Two effect sizes are commonly used for ANOVA (Lakens, 2013):
Eta squared (eta²) = SS between groups / SS total = 4.51 / 140.25 = 0.032. Income explains 3.2% of the variance in repurchase intention.
Omega squared (omega²) = (SS between groups − (k − 1) × MS within groups) / (SS total + MS within groups) = (4.51 − 3 × 0.52) / (140.25 + 0.52) = 0.021. This index corrects the positive bias of eta², so it is more trustworthy in small samples.
By Cohen's (1988) conventions, an eta² of about 0.01 is small, 0.06 medium and 0.14 large. The effect of income here is small.
PSPP does not print eta² or omega² for ANOVA. You can compute them by hand from the ANOVA table as above, or use Part 3 of anova.sps (results in Figure 12). In SPSS 27 and later, the One-Way ANOVA dialog has an Estimate effect size for overall tests option.
5. Post-hoc tests
Choose a post-hoc test
Tukey HSD compares every pair of groups, controls the overall Type I error and is the default choice when the variances are similar (Maxwell et al., 2018).
Games-Howell does not assume equal variances, so it suits cases where Levene's test is significant or the group sizes are very unequal (Games & Howell, 1976). In this data set the smallest group (26 people) is only about 30% of the largest (89 people), so running Games-Howell as a robustness check is sensible.
Bonferroni divides the 0.05 level by the number of pairs. It is best suited to comparing a few pairs chosen before you look at the data; when you compare every pair, it is more conservative than Tukey.
Fisher's LSD does not correct for multiple comparisons, so do not use it as your main post-hoc test.
Run post-hoc tests only when the overall F test is significant, unless you set a specific comparison hypothesis in advance. If F is not significant and you still search pair by pair for p < 0.05, you are fishing for results.
Read the Multiple Comparisons table

Read the (I) and (J) columns. Each row is a pair of groups; the mean difference is group I minus group J. PSPP labels the columns "(I) Family" and "(J) Family" instead of using the name of the grouping variable (box 1). This is how PSPP displays the table; it does not affect the results.
Skip the repeated rows. Each pair appears twice with opposite signs (boxes 2 and 3). Read each pair once, which gives 6 pairs.
Find the pairs with Sig. < 0.05. There is only one: the $1,000 to under $2,000 group is 0.32 points lower than the $2,000 to under $3,000 group (p = 0.023; 95% CI [0.03, 0.61] for $2,000 to under $3,000 minus $1,000 to under $2,000).
Compare with Games-Howell and Bonferroni. The same pair has p = 0.031 with Games-Howell and 0.027 with Bonferroni. The other five pairs all have p > 0.3 in all three tests.

Figure 11 shows the key point: the difference lies between two adjacent income groups in the middle of the range, while the lowest and highest groups do not differ from any other group.
6. When the group variances differ: Welch's ANOVA
As with the t-test, the classic ANOVA can mislead when unequal variances come together with unequal group sizes. Welch's ANOVA does not assume equal variances, and many authors recommend it as the default (Delacre et al., 2019). The nonparametric alternative is the Kruskal-Wallis test, which compares ranks instead of means (Kruskal & Wallis, 1952).
PSPP has no Welch's ANOVA. Part 3 of anova.sps computes it directly from Welch's (1951) formula: it collapses the data to one row per group with AGGREGATE, computes the weights w = n / s² and then computes F and the adjusted degrees of freedom. The key lines are:
SORT CASES BY INCOME.
AGGREGATE /OUTFILE=* /BREAK=INCOME /N_J=N(RI) /M_J=MEAN(RI) /SD_J=SD(RI).
COMPUTE W_J = N_J / SD_J ** 2.
...
COMPUTE F_WELCH = (SUM_A / (K - 1)) / (1 + 2 * (K - 2) / (K ** 2 - 1) * SUM_H).
COMPUTE DF2 = (K ** 2 - 1) / (3 * SUM_H).
COMPUTE P_WELCH = 1 - CDF.F(F_WELCH, DF1, DF2).The Kruskal-Wallis test is available from Analyze > Non-Parametric Statistics > K Independent Samples:
NPAR TESTS /K-W=RI BY INCOME(1, 4).
Table 1 puts the three tests side by side.
Welch's ANOVA gives p = 0.0500 rounded to four decimal places. The exact value is a hair below 0.05 (0.049999 in check_python.py), but arguing about which side of the threshold it falls on is pointless. The lesson is this: the evidence for a difference by income is weak, and the conclusion depends on which test you choose. Because Levene's test is not significant (p = 0.803) and Kruskal-Wallis gives a result similar to the classic ANOVA, it is reasonable to report the classic ANOVA together with the two cross-checks, as long as you state all three numbers.
7. Test a trend with a contrast
Income is an ordinal variable. A natural question is: does intention to buy again rise (or fall) as income rises? Post-hoc tests cannot answer this question, because they only compare pairs. A linear trend contrast with the coefficients −3, −1, 1, 3 tests exactly that hypothesis: the coefficients rise evenly with the order of the groups and add up to 0.
The value of the contrast is 0.00; t(261) = 0.00; p = 0.998 (the Does not assume equal variances row, with 46.37 degrees of freedom, gives the same conclusion). There is no linear trend at all: repurchase intention neither rises nor falls with income. Taken together with the post-hoc results, the pattern is a zigzag (3.90, 3.71, 4.03 and 3.79 in turn), not a systematic relationship.
Note: a contrast is a hypothesis that should be set before you look at the data. If you look at Figure 11 first and only then choose coefficients to "compare the $2,000 to under $3,000 group with the others", the p value of that contrast can no longer be trusted.
8. A non-significant example: repurchase intention by occupation
ONEWAY /VARIABLES=RI BY OCCUP /STATISTICS=DESCRIPTIVES HOMOGENEITY.F(3, 261) = 0.40, p = 0.751, eta² = 0.005. There is no evidence that repurchase intention differs by occupation. The result matches exactly the regression model in Post 16, "Dummy Variables and Moderator Variables in Regression" that contains only the three occupation dummy variables (F(3, 261) = 0.40, p = 0.751). One-way ANOVA and regression with dummy variables are the same linear model, presented differently.
When the overall F is not significant, as here, do not run post-hoc tests to look for a pair that differs.
9. Interpret the income result with care
The income result is statistically significant, but there are four reasons to interpret it cautiously:
The evidence sits at the threshold. p = 0.036 with the classic ANOVA and 0.050 with Welch's ANOVA.
The effect is small. omega² = 0.021: income explains about 2% of the variance in repurchase intention.
There is no theoretically meaningful pattern. Only two adjacent groups in the middle differ, and there is no linear trend. It is hard to explain why people earning $2,000 to under $3,000 a month would be more willing to buy again than people earning $1,000 to under $2,000, but not more willing than people earning under $1,000.
This is one of several tests. The data set has four demographic variables (gender, age, occupation, income). When you test all four against RI at the 0.05 level, one result with p < 0.05 by chance alone is not unusual. In the sample data only income is significant; gender (Post 17, p = 0.977), age group (p = 0.544) and occupation (Section 8, p = 0.751) are not.
A suitable way to write this up in a thesis: report all the demographic tests you ran, give the income result with its effect size and note that it is an exploratory finding that needs to be confirmed in another sample. Do not build major managerial implications ("Marketplace X should focus on customers earning $2,000 to $3,000 a month") on a 0.32-point difference at the edge of significance.
10. Report the results in APA 7 style
A one-way analysis of variance showed that repurchase intention differed significantly across income groups, F(3, 261) = 2.89, p = .036, eta² = .03, omega² = .02. Levene's test did not indicate unequal variances, F(3, 261) = 0.33, p = .803. Welch's ANOVA was at the threshold of significance, F(3, 97.31) = 2.70, p = .050, and the Kruskal-Wallis test gave a similar result, H(3) = 8.40, p = .038. Tukey HSD tests showed that only respondents earning $2,000 to under $3,000 a month (M = 4.03, SD = 0.75) had a higher repurchase intention than those earning $1,000 to under $2,000 (M = 3.71, SD = 0.74), mean difference = 0.32, 95% CI [0.03, 0.61], p = .023. The linear trend contrast was not significant, t(261) = 0.00, p = .998.
Repurchase intention did not differ by occupation, F(3, 261) = 0.40, p = .751, eta² = .005.
Add a descriptive table with the sample size, mean and standard deviation of each group (from the Descriptives table in Figure 8).
Five common mistakes
Running several t-tests instead of ANOVA. With 6 pairs, the cumulative Type I error rises to 26.5%.
Running post-hoc tests when the overall F is not significant in order to find a pair with p < 0.05.
Using LSD as the main post-hoc test. LSD does not correct for multiple comparisons.
Reading post-hoc results as a trend. "The $2,000 to under $3,000 group is higher than the $1,000 to under $2,000 group" does not mean "the higher the income, the stronger the intention to buy again". Use a trend contrast to test that.
Reporting only the p value without an effect size. eta² or omega² tells you whether the difference matters in practice.
Frequently asked questions
Can I run ANOVA when the group sizes are very unequal?
Yes. ANOVA does not require equal groups. However, when the group sizes differ a lot, the classic ANOVA is more sensitive to unequal variances, so also run Welch's ANOVA and use Games-Howell for the post-hoc tests.
Should I merge a small group into another one?
Merge groups only when the merge makes sense in substance and is decided before you see the results. For example, merging "$3,000 or more" with "$2,000 to under $3,000" into "$2,000 or more" could be justified as a market segment. Merging groups after seeing the results in order to get a smaller p is data manipulation.
Does one-way ANOVA require a Shapiro-Wilk normality test for each group?
It is not required. With groups of about 20 to 30 people or more, ANOVA is fairly robust. With large samples, Shapiro-Wilk is almost always significant (in the sample data, three of the four groups have p < 0.05) without telling you whether the departure from normality matters. Looking at the box plots and cross-checking with Kruskal-Wallis is enough (see also the FAQ in Post 9, "Descriptive Statistics in PSPP (SPSS)").
How do I run a two-way ANOVA (two grouping variables at once)?
PSPP has the GLM procedure (menu Analyze > Univariate Analysis) for ANOVA with several factors. The approach is similar to testing a moderator in Post 16: the interaction between the two grouping variables tells you whether the effect of one depends on the other.
References
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum Associates.
Delacre, M., Leys, C., Mora, Y. L., & Lakens, D. (2019). Taking parametric assumptions seriously: Arguments for the use of Welch's F-test instead of the classical F-test in one-way ANOVA. International Review of Social Psychology, 32(1), Article 13. https://doi.org/10.5334/irsp.198
Field, A. (2024). Discovering statistics using IBM SPSS Statistics (6th ed.). SAGE Publications.
Free Software Foundation. (2026). GNU PSPP (Version 2.1.2) [Computer software]. https://www.gnu.org/software/pspp/
Games, P. A., & Howell, J. F. (1976). Pairwise multiple comparison procedures with unequal n's and/or variances: A Monte Carlo study. Journal of Educational Statistics, 1(2), 113–125. https://doi.org/10.3102/10769986001002113
Kruskal, W. H., & Wallis, W. A. (1952). Use of ranks in one-criterion variance analysis. Journal of the American Statistical Association, 47(260), 583–621. https://doi.org/10.1080/01621459.1952.10483441
Lakens, D. (2013). Calculating and reporting effect sizes to facilitate cumulative science: A practical primer for t-tests and ANOVAs. Frontiers in Psychology, 4, Article 863. https://doi.org/10.3389/fpsyg.2013.00863
Maxwell, S. E., Delaney, H. D., & Kelley, K. (2018). Designing experiments and analyzing data: A model comparison perspective (3rd ed.). Routledge.
Welch, B. L. (1951). On the comparison of several mean values: An alternative approach. Biometrika, 38(3/4), 330–336. https://doi.org/10.2307/2332579






Discussion about this post