Guides · 2026-11-19

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:

  1. Are the methods matched to the study design and the type of outcome?
  2. Are the assumptions of the methods addressed?
  3. Is the handling of missing data, confounding and multiple testing explained?
  4. Are effect sizes and confidence intervals, not just p-values, planned?
  5. Are software and versions named?

A structure you can follow

ParagraphContent
1. Sample sizeCalculation (alpha, power, effect size) or statement that none was done
2. Descriptive statisticsHow continuous and categorical variables are summarised
3. Group comparisonsTests used for each variable type
4. ModellingRegression or survival methods, variable selection, assumption checks
5. Missing data, multiplicity, sensitivityHow each was handled
6. Significance and softwareAlpha, 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

Tips for clarity

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.

No SPSS or code needed
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.

Related