Chapter 6 Generalized Linear Models and Linear Mixed Models