161.251 Regression Modelling — Compiled Lectures
updated on 12 July 2026
Preface
These notes are the compiled lecture material for the course 161.251 Regression Modelling taught at Massey University by Jonathan Godfrey (Weeks 1–8 and appendices) and Nick Knowlton (Weeks 9–12).
We use R in almost every lecture; you should be able to run the code on your own.
The material makes use of tidyverse packages. Graphs are made using a mixture
of base R graphics and ggplot functions, with the choice being made on the basis
of convenience.
Please ask for help if you don’t understand the R code being demonstrated.