Browse by author
Lookup NU author(s): Dr Sam Tingle, Dr George KourounisORCiD
This work is licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0).
© The Author(s) 2025. Published by Oxford University Press on behalf of the Fellowship of Postgraduate Medicine. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted reuse, distribution, and reproduction in any medium, provided the original work is properly cited.Regression models provide information on complex relationships between patient factors, investigations, diagnoses, treatments, and outcomes. These inferences underpin evidence-based medicine. However, by default regression models assume straight-line relationships, and the common approach of splitting continuous variables into groups has several disadvantages. We discuss pitfalls with these common approaches, and provide an interactive regression model playground, which acts as a point-and-click showcase of these concepts. More flexible regression modelling techniques are available, which allow non-linear relationships between predictors and outcome to be captured. However, they have been shown to be underused in medical research. We feel a major contributor to this is that more flexible non-linear models are typically explained for a statistical audience, creating a barrier for medical professionals. In this article, we introduce non-linear regression for medical researchers. Specifically, we focus on restricted cubic splines (RCS), which allow curved relationships to be fit, within the context of regression models. This has the benefit that the overall structure of the regression model and its outputs, which are familiar to medical researchers, stays the same, with the simple addition of non-linear modelling of specific variables. We implement RCS in a case study, with accompanying example R scripts (available on GitHub). We also launch an R package (“rmsMD”) which aims to make this technique approachable to medical researchers, as well as creating publication-ready tables and plots. Overall, this article equips medical researchers with an intuitive understanding of non-linear modelling, which can then be applied with the easy-to-use tools provided.
Author(s): Tingle SJ, Kourounis G, Elliot S, Harrison EM
Publication type: Article
Publication status: Published
Journal: Postgraduate Medical Journal
Year: 2026
Volume: 102
Issue: 1209
Pages: 670-675
Print publication date: 01/07/2026
Online publication date: 03/11/2026
Acceptance date: 29/09/2025
Date deposited: 10/07/2026
ISSN (print): 0032-5473
ISSN (electronic): 1469-0756
Publisher: Oxford University Press
URL: https://doi.org/10.1093/postmj/qgaf183
DOI: 10.1093/postmj/qgaf183
Data Access Statement: This manuscript uses entirely simulated data, which is available free and open-access on GitHub (https://github.com/rmsMD/Non-linear_manuscript).
PubMed id: 41182316
Altmetrics provided by Altmetric