Pātuhitia tēnei: Linear and generalized linear mixed models and their applications