How to Choose the Right Statistical Test Without Memorising a Table
Choose a statistical method by starting with the research question and the quantity you want to estimate. Then identify the outcome type, comparison structure, whether observations are independent or paired, the study design, need for covariate adjustment and model assumptions. A test-name table can orient you, but “continuous = t-test” or “categorical = chi-square” is not enough for real research.
Your statistical test is not chosen by your software menu.
SPSS having a button for it is not a methodological justification.
The right analysis begins before you open SPSS, Stata, R or anything else.
It begins with:
What exactly am I trying to estimate?
Step 1: what is the research question?
Suppose the broad topic is contraceptive use.
Four questions could be:
- What proportion of women currently use contraception?
- Does contraceptive use differ between urban and rural women?
- What factors are associated with contraceptive use?
- Did contraceptive use change among the same women after an intervention?
Same outcome topic.
Different analytical questions.
The statistical method follows the question.
Not the subject area.
Choose the estimand before the test.
The test is a tool for answering a statistical question.
It is not the statistical question.
Step 2: what is the outcome?
The outcome often determines the family of analyses you should consider.
Common outcome types include:
Binary
Examples:
- uses contraception: yes/no;
- depressed: yes/no;
- treatment success: yes/no.
Possible analyses may involve:
- proportions;
- risk differences;
- risk ratios;
- odds ratios;
- binary-outcome regression models.
Continuous
Examples:
- blood pressure;
- PHQ-9 score;
- weight;
- knowledge score.
Possible analyses may involve:
- means;
- mean differences;
- linear models;
- methods accounting for repeated or clustered measurements.
Count
Examples:
- number of clinic visits;
- number of depressive episodes;
- number of adverse events.
Count outcomes often require models designed for counts, depending on their distribution and research question.
Ordinal
Examples:
- poor / fair / good / excellent;
- ordered severity levels;
- Likert-type outcome categories.
The order contains information.
Treating an ordinal outcome as an unordered category can waste it.
Treating it as continuous may or may not be defensible depending on the measure and analysis.
Time-to-event
Examples:
- time to contraceptive discontinuation;
- time to relapse;
- time to death.
Now censoring and event timing matter.
A simple comparison of final proportions may throw away important information.
Step 3: what are you doing with the outcome?
Do you want to:
- describe it?
- compare two groups?
- compare several groups?
- estimate an exposure-outcome association?
- adjust for confounding?
- model repeated change?
- predict it?
- estimate time to an event?
“Binary outcome” does not automatically mean one test.
For example:
What proportion currently uses contraception?
requires an estimate of a proportion and uncertainty.
Does use differ between urban and rural groups?
requires a comparison.
What is the adjusted association between distance and use?
requires an appropriate regression model.
Different task.
one study, four analyses
Suppose the outcome is:
Current contraceptive use: yes/no
Question A
What proportion of women use contraception?
You need a proportion and confidence interval.
No group-comparison test is required to answer the primary descriptive question.
Question B
Does use differ between urban and rural women?
Now you are comparing binary outcomes between groups.
A chi-square or exact test might help assess the unadjusted association in some settings.
But report the actual group proportions and an interpretable effect estimate.
Do not finish with:
p = 0.02.
Question C
Is residence associated with contraceptive use after accounting for prespecified confounders?
Now you need a regression approach appropriate to the binary outcome and the estimand.
Depending on the question, you may prefer:
- logistic regression for odds;
- log-binomial or modified Poisson approaches for risk/prevalence ratios;
- another model appropriate to the design.
The test-name table has become a modelling question.
Question D
Did use change among the same women before and after an intervention?
The observations are paired.
That dependence changes the analysis.
Treating baseline and follow-up as independent groups ignores the within-person structure.
Same variable.
Different statistical method.
Step 4: are the observations independent?
This is one of the easiest ways to choose the wrong test.
Independent groups
Example:
Compare mean blood pressure among different people in intervention and control groups.
Paired observations
Example:
Measure blood pressure before and after treatment in the same participants.
The two observations from the same person are related.
Matched data
Example:
Cases individually matched to controls.
The matching creates dependence that should be reflected in analysis.
Repeated measures
Example:
PHQ-9 measured at baseline, two weeks, six months and 12 months.
Now each participant contributes several correlated observations.
Clustered data
Example:
Students are sampled within schools.
People in the same school may be more similar than people from different schools.
The analysis needs to account for the study's correlation structure.
You wrote:
“An independent-samples t-test compared baseline and endline scores.”
But baseline and endline came from the same participants.
Those observations are not independent.
The test may be answering a different data structure from the one you actually have.
Step 5: do you need adjustment?
Suppose you want a causal or explanatory estimate from observational data.
Now variable roles matter.
Potential questions include:
- Which variables confound the exposure-outcome relation?
- Are there design variables?
- Is clustering present?
- Are sampling weights needed?
- Is effect modification important?
Do not choose regression simply because:
“multivariate analysis is more advanced.”
Use regression because the question requires modelling or adjustment.
And choose covariates for reasons consistent with the estimand.
Our guides on covariate selection explain why “include everything with p < 0.20” is not a universal confounder-selection strategy.
Step 6: what assumptions does the method require?
Every model makes assumptions.
The useful question is not:
“Is my data normal?”
It is:
Which assumptions matter for this estimator/model, and are they reasonable enough for this analysis?
Depending on the method, assumptions may involve:
- independence;
- distribution of residuals;
- linearity;
- variance structure;
- proportional hazards;
- correct link function;
- absence of severe sparsity;
- model specification;
- missing-data assumptions.
A normality test p-value does not make these decisions for you.
A common trap: Shapiro-Wilk chooses the test
A workflow such as:
Shapiro-Wilk p < 0.05 → data are non-normal → Mann-Whitney.
can be too mechanical.
Ask:
- What quantity are you trying to compare?
- Are you interested in means, distributions or ranks?
- How large is the sample?
- What does the distribution actually look like?
- Are there outliers?
- What assumptions apply to the test statistic or model?
- Is transformation meaningful?
- Would a robust or model-based method better answer the estimand?
The alternative method should answer the scientific question.
Not merely survive a normality test.
Step 7: what estimate should the reader receive?
This is the question giant statistical-test tables often forget.
Suppose a chi-square test gives:
p = 0.004
What should the reader learn?
Not just:
There was an association.
Maybe you should report:
- 63% vs 48%;
- risk difference = 15 percentage points;
- prevalence ratio;
- odds ratio;
- confidence interval.
The analysis should end in an interpretable estimate.
A test tells you how you evaluated a question. An effect estimate tells the reader what you found.
A practical orientation table
Use this only as an orientation.
Not as autopilot.
| Question | Outcome/data structure | Possible starting point | What to report |
|---|---|---|---|
| Estimate a proportion | Binary | Proportion estimate | % + CI |
| Compare binary outcome across independent groups | Binary, independent | Chi-square/exact test or suitable model | Group proportions + effect estimate + CI |
| Compare means across two independent groups | Continuous, independent | Two-sample mean comparison / linear model | Mean difference + CI |
| Compare paired continuous measurements | Continuous, paired | Paired analysis | Mean change/difference + CI |
| Compare several group means | Continuous, independent groups | ANOVA/linear model framework | Group estimates + contrasts + CIs |
| Exposure-outcome association, continuous outcome | Continuous | Linear regression where assumptions fit | Coefficient/mean difference + CI |
| Exposure-outcome association, binary outcome | Binary | Binary-outcome regression | RR/PR/OR as appropriate + CI |
| Repeated outcomes | Repeated/clustered | Repeated-measures or multilevel/GEE approach as appropriate | Time/group contrasts + CI |
| Time to event | Survival data | Survival model / time-to-event methods | Survival estimates, HR or other estimand + CI |
| Count outcome | Count | Count model where appropriate | Rate/count effect estimate + CI |
The phrase possible starting point is deliberate.
Real designs can require more specific approaches.
T-test, ANOVA or regression: are these really different worlds?
Not as much as introductory tables imply.
Many common comparisons can be expressed within a general linear-model framework.
For example:
- a two-group mean comparison can be represented by a linear regression with a binary group indicator;
- ANOVA can be represented within linear modelling;
- regression can incorporate adjustment and interactions that a simple two-group test cannot.
Understanding the model often gives you more flexibility than memorizing disconnected test names.
But more flexible is not automatically better.
Use the simplest model that answers the question appropriately.
Chi-square or Fisher's exact test?
Both concern categorical data, but the choice depends on the table structure and whether large-sample approximations are adequate.
Do not use:
“sample size below 30 = Fisher”
as a universal rule.
Look at the contingency table and expected cell counts, and consider whether an exact method or model is appropriate.
More importantly, report the association estimate.
The p-value is not the substantive result.
What if I have more than one predictor?
Do not jump automatically from “two variables” to “multiple regression.”
Ask why each predictor is in the model.
Possible purposes include:
- estimating a specific adjusted exposure effect;
- prediction;
- descriptive modelling;
- confounding control;
- effect modification.
Those goals lead to different modelling choices and interpretations.
A model with ten predictors is not automatically more rigorous than one with three.
Survey design can change the analysis
If your study used:
- stratification;
- cluster sampling;
- unequal selection probabilities;
- survey weights;
ordinary standard errors may be wrong if the design is ignored.
Likewise, a cluster randomized trial cannot be analysed as though 500 individuals were independently randomized if randomization occurred at 20 schools.
The analysis must know how the data were generated.
What do I actually write in my analysis plan?
Weak:
Data will be analysed using chi-square, t-test and logistic regression. A p-value below 0.05 will be considered significant.
That is a software itinerary.
It does not connect tests to objectives.
Stronger:
For Objective 1, we will estimate the prevalence of modern contraceptive use with a 95% confidence interval. For Objective 2, we will compare use across residence groups using group-specific proportions and an appropriate unadjusted effect estimate. For Objective 3, we will estimate the adjusted association between clinic distance and contraceptive use using [specified model], accounting for [prespecified confounding/design structure]. Results will be reported as [effect measure] with 95% confidence intervals. Model assumptions and data structure will be assessed as appropriate to the selected model.
The exact model must still be specified.
But now the analysis follows the objectives.
The Methods Bench statistical-test pathway
Before choosing a test, answer:
1. What am I trying to estimate?
Difference? Association? Prediction? Change? Time to event?
2. What is the outcome?
Binary? Continuous? Count? Ordinal? Time-to-event?
3. What is the comparison structure?
One group? Two groups? Several groups? Exposure-outcome model?
4. Are observations independent?
Independent? Paired? Repeated? Clustered?
5. Do I need adjustment?
Confounding? Design? Covariates? Weights?
6. What assumptions does the model require?
Are they reasonable for these data?
7. What estimate should the reader receive?
Mean difference? Risk difference? Risk ratio? Odds ratio? Rate ratio? Coefficient? Hazard ratio?
Only now pick the method.
Open your analysis plan.
For every test name, draw an arrow back to a specific objective.
Then answer:
What estimate will this test/model produce that answers the objective?
If you cannot answer that question, delete the test name temporarily.
Start again from the objective.
Frequently asked questions
- Which statistical test should I use?
There is no answer without knowing the research question, outcome type, group structure, dependence, design and intended estimate.
- What test should I use for categorical data?
It depends on the question. A chi-square or exact test may assess an unadjusted association between categorical variables, while regression may be needed for adjusted or model-based estimates.
- What test should I use for two continuous groups?
A two-group mean comparison or linear model may fit if the estimand is a mean difference and assumptions are reasonable. Paired data require a different analysis from independent groups.
- Should I choose a non-parametric test if my normality test is significant?
Not automatically. Evaluate the estimand, data distribution, assumptions and robustness rather than using a single normality-test p-value as the decision.
- When do I need regression?
When your question requires modelling an outcome in relation to one or more predictors, adjustment, prediction, interactions or another regression-based estimand.
- Is logistic regression always best for a binary outcome?
No. Logistic regression estimates odds ratios. Depending on the design and question, risk ratios, prevalence ratios or risk differences may be more interpretable and may require other modelling approaches.
Create a seven-column analysis table:
Objective → estimand → outcome type → data structure → adjustment → method → effect estimate
If the final two columns do not follow naturally from the first five, do not open SPSS yet.
References and further reading
- 1.World Health Organization. Recommended format for a research protocol: data management and statistical analysis.
- 2.Greenland S, Pearl J, Robins JM. Causal diagrams for epidemiologic research. Epidemiology. 1999.
- 3.Schisterman EF, Cole SR, Platt RW. Overadjustment bias and unnecessary adjustment in epidemiologic studies. Epidemiology. 2009.
- 4.Methods Bench. Research objectives, variable-selection and study-alignment guides.
- 5.Relevant reporting guidance should be selected for the study design (for example STROBE, CONSORT or other EQUATOR Network guidance). --- # Cross-linking instructions for Lovable, Batch 4
Take it further
- GuideP-Values, Confidence Intervals and Effect Sizes: How to Read Them Together
- GuideHow to Choose Variables for a Quantitative Study Before You Open SPSS
- GuideIndependent, Dependent, Confounding and Mediating Variables: What They Actually Do in a Study
- GuideYour Research Question and Methods Do Not Match. Here Is How to Fix It
Better research, once a week.
Practical methods guidance, research tools and funding opportunities from Methods Bench.
Get practical research notes and new opportunities
Short, useful emails for researchers in Uganda and East Africa. No spam.