How to Choose Statistical Test in Clinical Research: T-test, Mann-Whitney U / Ranksum, ANOVA, Kruskal-Wallis, Paired t-test, Wilcoxon Signed-Rank, Chi-square, Fisher’s Exact, Log-rank, Cox regression
- Mayta

- Jun 11
- 3 min read
Updated: Aug 18
Step 1 Identify the Dependent Variable Y
Step 2 Define the Independent Groups X
How many groups? (2 vs > 2)
Structure:
Independent groups (different patients / subjects)
Paired / repeated (same subject measured twice or more)
(If X itself is continuous—e.g., dosage in mg—see “When to use regression” below.)
Step 3 If Y Is Continuous → Check Normality
stata: hist postopbleeding, normal swilk postopbleedingp > 0.05 → “looks normal” → parametric tests
p < 0.05 → not normal → non-parametric tests (or transform / use GLM)
Step 4 Master Test-Selection Table
Step 5 When to Use Regression Instead of a Simple Test
Step 6 Example Walk-Throughs
Post-op bleeding (mL) across 3 TXA dose groups
Y: Continuous
2 independent groups
Normality p < 0.05 → Not normal
→ Kruskal-Wallis
stata: kwallis postopbleeding, by(txagroup)
Infection type (A/B/C) by TXA vs no TXA
Y: Categorical (>2)
2 independent groups
→ χ² test (2×3 table)
stata: tabi 20 5 3 \ 15 12 8 , chi2
Seizure counts pre- vs post-drug in same patients
Y: Count, paired
Small n, skewed
→ Wilcoxon signed-rank or Poisson GLMM if covariates needed
30-day survival across 4 surgical centers
Y: Time-to-event
2 independent groups
→ Log-rank test; follow-up Cox model for adjustment
stata: sts test center stcox i.center age sex
Quick Recap
Start with Y: Identify its scale.
Count & classify X groups: 2 vs > 2, independent vs paired.
If Y is continuous: Check normality.
Plug into the table to pick the test.
Need adjustment or continuous X? → Move to regression.





Comments