Generalised Linear Models - II
Saket Choudhary
Biostatistics in Healthcare
DH 801
Lecture 13 || Friday, 7th November 2025
GLMs
Revisiting OLS
Problem
Survey data:
Problem
Problem
Problem
OLS
ls_model <- lm(visits ~ health + chronic_condition + gender + age_years + private_insurance + illness,
data = health_data)
dfdf
Linear regression: Assumptions
dfdf
What does the linear regression really model?
Independent variables (x) are measured without error, but there is error in the measurement of dependent variables (y)
Generalized linear models
Value of explanatory variable j for observation i
Components of a GLM
Advantage of GLM rather than transforming
Link function
Ughhhh, this is so confusing…
g(Y)
Distribution of e
Back to the problem
Visualising GLM predictions
dfdf
Questions