REGRESSION MODELLING FOR HEALTH PRACTITIONERS · CHAPTER 1
Introduction to Regression Modelling
Regression modelling is the cornerstone of modern medical statistics and epidemiology. When health practitioners ask questions about how risk factors or treatments relate to health outcomes, regression provides a framework for quantifying those relationships while taking variability and uncertainty into account. This opening chapter introduces the purpose of regression models, their importance in clinical research, and the range of models that will be covered in this book.
Why Regression Matters in Health Research
Clinical and epidemiological data rarely involve simple two–group comparisons; patients differ in their demographics, disease severity, co‐morbidities and behaviours. Regression models allow researchers to estimate associations while adjusting for these differences. For example, logistic regression is used to estimate the relationship between one or more independent variables and a binary outcome variable. Logistic regression models the log–odds of the outcome as a linear function of the predictors, and its exponentiated coefficients can be interpreted as odds ratios. On the other hand, linear regression quantifies how a continuous outcome changes on average with one or more predictors. These tools are indispensable in health research because they allow investigators to answer questions such as:
How does body mass index (BMI) relate to blood pressure?
Does a new drug reduce the odds of mortality compared with standard care?
Are the number of emergency department visits related to socioeconomic status?
How does time to relapse depend on treatment assignment and baseline characteristics?
Without regression modelling, such questions would have to be addressed by crude stratification or unadjusted comparisons, which can lead to misinterpreted findings when confounding variables are present. Regression provides both a mathematical description of the relationship and a mechanism for adjusting for confounders.
Types of Regression Models
This book focuses on four broad classes of regression models that are most relevant to health practitioners:
- Linear regression
-
Models a continuous outcome as a linear function of one or more predictors. Linear regression is extremely flexible and can incorporate both continuous and categorical predictors. It can test and quantify associations, adjust for multiple variables and predict outcomes.
- Logistic regression
-
Applies when the outcome is binary (e.g. disease vs no disease). It models the log–odds of the outcome and produces odds ratios that quantify how the odds change with predictor variables.
- Count regression
-
When the outcome is a count (e.g. number of hospital visits), Poisson and negative binomial regression are more appropriate than ordinary least squares. Count models are common in many disciplines and can incorporate exposure time.
- Survival regression
-
Time‐to‐event outcomes (e.g. time to death or relapse) require models that handle censoring. Kaplan–Meier curves and the log–rank test provide univariate comparisons, while the Cox proportional hazards model allows multiple covariates and yields hazard ratios.
Other specialised models—such as ordinal regression, zero‐inflated models and mixed effects models—will also be introduced later in the book. The framework of generalised linear models (GLMs) unifies many of these approaches by specifying a distribution for the outcome and a link function.
Regression for Adjusting Confounders
One of the most powerful uses of regression modelling is to adjust for confounding variables. Confounders are variables associated with both the predictor of interest and the outcome and can distort the apparent effect if not accounted for. For example, in an observational study evaluating the effect of a new surgical technique on postoperative complications, patients receiving the new technique might differ systematically in age or disease severity. A multivariable logistic or linear regression allows us to estimate the effect of the technique while holding these other factors constant.
Worked example
Example: Smoking and Heart Disease Suppose we collect data on a cohort of individuals with variables for smoking status (smoker/non‐smoker), age, sex and whether the individual has ever been diagnosed with coronary heart disease. A logistic regression model can estimate the log–odds of heart disease as a function of smoking status while adjusting for age and sex. The exponentiated coefficient for smoking represents the odds ratio of heart disease for smokers compared with non‐smokers, controlling for age and sex. If the adjusted odds ratio is 2.5, this suggests that smokers have 2.5 times the odds of heart disease relative to non‐smokers after accounting for age and sex.
Interpretation
Regression models translate clinical questions into quantitative statements. For binary outcomes, the logistic regression coefficient measures the log–odds change per unit increase in the predictor, and its exponential gives an odds ratio. For continuous outcomes, the linear regression slope quantifies the expected change in the outcome per unit change in the predictor. Regression allows us to adjust for other variables so that the reported effect reflects the relationship of interest, not the influence of confounders. Always examine confidence intervals to assess the precision of the estimates and be mindful of model assumptions and the context of the data.
Exercises
Exercises
For each of the following research questions, identify the most appropriate type of regression model (linear, logistic, count or survival) and briefly justify your choice:
Is high cholesterol associated with systolic blood pressure?
Does a new vaccine reduce the risk of influenza infection compared with placebo?
How many emergency department visits do heart failure patients have in one year?
What factors influence the time from hospital discharge to readmission among stroke patients?
Simulate a small dataset with one binary predictor (e.g. treatment assignment) and one continuous outcome. Fit a simple linear regression model in your favourite software (
R: lm(),Python: statsmodels.OLS(), orJulia: GLM.lm()) and interpret the intercept and slope.Describe, in your own words, why adjusting for confounders is important. Give an example from clinical practice where failing to adjust for a confounder could lead to misleading conclusions.