How to Write the Statistical Analysis Section of a Paper
A practical template for the statistical analysis section of a medical paper, with what to include, an example you can adapt, and the most common mistakes.
The statistical analysis section of a medical paper should state, in the order the analysis was done, how you described the data, which tests or models answered each question, the significance threshold, how you dealt with missing data and multiple comparisons, and which software you used. Write it so that another analyst with your dataset could reproduce your results. It belongs at the end of the Methods and should be specific, not generic.
Exact requirements vary by journal and study design, so always check the author guidelines and the relevant reporting guideline (STROBE, CONSORT, TRIPOD, STARD and others) before you finalise.
What reviewers look for
Reviewers and statistical editors usually check five things:
- Are the methods matched to the study design and the type of outcome?
- Are the assumptions of the methods addressed?
- Is the handling of missing data, confounding and multiple testing explained?
- Are effect sizes and confidence intervals, not just p-values, planned?
- Are software and versions named?
A structure you can follow
| Paragraph | Content |
|---|---|
| 1. Sample size | Calculation (alpha, power, effect size) or statement that none was done |
| 2. Descriptive statistics | How continuous and categorical variables are summarised |
| 3. Group comparisons | Tests used for each variable type |
| 4. Modelling | Regression or survival methods, variable selection, assumption checks |
| 5. Missing data, multiplicity, sensitivity | How each was handled |
| 6. Significance and software | Alpha, one- or two-sided, software and version |
Template you can adapt
Replace the bracketed items with your own choices. Delete any sentence that does not apply to your study.
Sample size. "The sample size was calculated to detect [difference] in [outcome] with [80/90]% power at a two-sided significance level of 0.05, assuming [SD or event rate] based on [source]. This resulted in [n] participants per group." For retrospective studies: "No formal sample size calculation was performed; all eligible patients from [period] were included."
Descriptive statistics. "Continuous variables are presented as mean (standard deviation) if approximately normally distributed, and median (interquartile range) otherwise. Normality was assessed using [histograms/Q-Q plots/Shapiro-Wilk test]. Categorical variables are presented as number (percentage)."
Comparisons. "Continuous variables were compared between two groups using the independent-samples t-test (Welch's version where variances were unequal) or the Mann-Whitney U test, and among three or more groups using one-way ANOVA or the Kruskal-Wallis test. Categorical variables were compared using the chi-square test or Fisher's exact test when expected cell counts were below 5. Paired data were analysed with the paired t-test or Wilcoxon signed-rank test."
Regression. "Associations with [outcome] were examined using [logistic/linear/Cox] regression. Variables with p < [0.10] in univariable analysis and those considered clinically important were entered into the multivariable model. Results are reported as [odds ratios/hazard ratios/regression coefficients] with 95% confidence intervals. Multicollinearity was assessed using variance inflation factors, and model fit was assessed using [Hosmer-Lemeshow test/calibration plots/proportional-hazards checks]."
Survival analysis. "Time-to-event outcomes were estimated using the Kaplan-Meier method and compared using the log-rank test. Hazard ratios were estimated using Cox proportional hazards models, and the proportional-hazards assumption was checked using [Schoenfeld residuals]."
Diagnostic or predictive performance. "Discrimination was evaluated using the area under the receiver operating characteristic curve (AUC) with 95% confidence interval. The optimal cut-off was chosen by [Youden index/pre-specified criterion], and sensitivity, specificity and predictive values are reported."
Missing data. "Missing data were [N]% for [variables]. Analyses were conducted using [complete cases/multiple imputation by chained equations with m = X imputations], and [sensitivity analysis description]."
Multiplicity and significance. "All tests were two-sided, and p < 0.05 was considered statistically significant. [Adjustments such as Bonferroni or Holm were applied to the [number] pairwise comparisons / No adjustment for multiple comparisons was made, and secondary analyses should be regarded as exploratory.]"
Software. "Analyses were performed using [software name, version, and package if relevant]."
Common mistakes to avoid
- Listing every test the software offers. Include only what you actually used for the results in the paper.
- Not matching the test to the data. For example, treating ordinal scores as normal, or using independent tests on paired measurements.
- Writing "p < 0.05 was significant" and nothing else. That omits methods for assumptions, missing data and multiplicity.
- Selecting variables by univariable p-value alone without clinical reasoning, or ignoring events-per-variable limits.
- Not saying how outliers were treated, or removing them without a pre-stated rule.
- Reporting only p-values. Include effect sizes with confidence intervals.
- Changing the analysis after seeing results without declaring it. Label post-hoc analyses as post hoc.
- Omitting the software or version, which hampers reproducibility.
- Mixing the Methods and Results. The methods describe the plan; the numbers belong in Results.
Tips for clarity
- Write in past tense and keep to what was done.
- Use the same terms in Methods, tables and figure legends.
- Pre-specify primary and secondary analyses and mention the protocol or registration where relevant.
- Keep it concise. Put long details, such as the full imputation model, in a supplement.
- Ask a statistician to read it if the design is complex, such as cluster, longitudinal or adaptive designs.
How to do this in MedStat
MedStat AI statistics lets you upload your data, have the AI auto-select suitable tests for your variables, and get results, charts and p-values in one click, supporting common tests, regression, survival analysis and ROC. Because it is no-code statistics, you can run these analyses by point-and-click, and then record in your methods exactly which tests were used for each variable type. Confirm the final choice against your study design and journal requirements before you write it up.
Upload your data, let AI pick the right test, and get results and charts in one click.
Try MedStat
FAQ
What should be included in the statistical analysis section of a medical paper?
State how variables were summarised, which tests compared which variables, how models were built and checked, the significance level and whether tests were two-sided, how missing data and multiplicity were handled, and the software and version used. It should be detailed enough for another analyst to reproduce your work.
Should the statistical analysis section be in the past tense?
Yes. Describe what you did in past tense, for example 'continuous variables were compared using the t-test', and keep it consistent with the rest of the methods.
Do I need to justify the sample size in the methods?
If the study is a trial or prospective study, yes: report the target effect size, power, alpha and the resulting sample size. For retrospective or exploratory studies, say that no formal calculation was done and explain the sample's origin.
Is it enough to write 'p < 0.05 was considered significant'?
No. That sentence is only one part. Reviewers also expect the tests used, the handling of missing data and multiple comparisons, model assumptions, and the software.