Statistical test selector: which analysis should I use?

Answer three or four questions and see the statistical test that fits your design, with its assumptions, effect size, R code, SPSS path and an APA reporting example. 26 tests, from the t test to logistic regression.

Why is choosing an analysis so hard?

Statistics courses teach tests one at a time; when you write a thesis the question flips: “Which one fits my data?” The answer lies not in the name of the test but in the research design. This tool asks the questions that pin the design down: what are you looking for, what kind of variable do you have, who do the measurements come from, how many groups are there, what does the distribution look like? Your answers lead to one of 26 tests, each with its assumptions, the effect size to report, R code, the SPSS menu path and an APA-style reporting example.

How to use it

Under “Find by questions”, click through the options; tap any step shown at the top to go back to that point. If you already know the test you want, pick it directly under “All tests”. The numbers in the reporting examples are made up; they only show the format, so replace them with your own.

Three common mistakes

Choosing the test after seeing the data. Trying several analyses and reporting the one that reaches significance seriously inflates the false-positive rate. Write the analysis plan before collecting data, and work out power at that stage with the Sample size and power analysis tool.

Reporting only the p value. A p value speaks to whether an effect exists, not how large it is. In a large sample a trivial difference can be “significant”; in a small one an important difference can be “non-significant”. That is why an effect size is suggested with every test; the Effect size converter moves between measures.

Skipping assumptions, or getting stuck on them. Assumptions tell you when a test can be trusted, but no real data set meets them perfectly. Assess normality against several criteria with the Normality check and look at the size of the departure.

What this wizard does not cover

Multilevel (nested) data, structural equation models, factor analysis, survival analysis and Bayesian methods are not here. If your design calls for one of these, or you have a lot of missing data, working with a statistician beats reporting the wrong test correctly.

References

Field, A. (2018). Discovering Statistics Using IBM SPSS Statistics (5th ed.). Sage. · Delacre, M., Lakens, D., & Leys, C. (2017). Why psychologists should by default use Welch’s t-test instead of Student’s t-test. International Review of Social Psychology, 30(1), 92–101. · Lakens, D. (2013). Calculating and reporting effect sizes to facilitate cumulative science. Frontiers in Psychology, 4, 863. · Simmons, J. P., Nelson, L. D., & Simonsohn, U. (2011). False-positive psychology. Psychological Science, 22(11), 1359–1366. · Wobbrock, J. O., et al. (2011). The aligned rank transform for nonparametric factorial analyses using only ANOVA procedures. CHI ’11, 143–146. · American Psychological Association. (2020). Publication Manual (7th ed.).

Frequently asked questions

How do I decide which statistical test to use?
Four questions settle most cases: What is your aim (difference, relationship, prediction)? What kind of outcome do you have (continuous, ordinal, categorical)? Do the measurements come from different people or the same people? How many groups or measurements are there? For continuous outcomes a fifth question is whether the data are roughly normal. This tool asks them in order and takes you to a suitable test.
Are Likert scores continuous or ordinal?
A single Likert item (one question rated 1–5, say) is ordinal and better analysed with non-parametric tests. Scale scores formed by summing or averaging several items are treated as continuous in practice and analysed with parametric tests when the distribution allows. The debate continues, but this is the common and defensible practice.
Why is Welch’s t test recommended over the classic t test?
The classic (Student) t test assumes the two groups have equal variances. When that fails and group sizes differ, the error rate rises. Welch’s t test does not need the assumption and has almost the same power when variances are equal. That is why Delacre and colleagues (2017) recommend Welch as the default; it already is in R, and it is the second row of SPSS output.
If normality fails, must I use a non-parametric test?
No. With 30 or more observations per group, the t test and ANOVA are robust to moderate departures. Non-parametric tests are safer with small samples, marked skew, outliers and ordinal data. Other options are transformation and bootstrapping. Whichever you choose, decide before looking at the results and justify the choice in your report.

02 Systems

Organisations, data and design

People can only be as well as the systems they live in. I work in four areas so that workplaces, interfaces, trainings and processes fit the people who use them:

Related training

Evidence literacy: What numbers can and can’t say about people

We can work on this together for your team or organisation.

Request a training