Generalized Linear Model

In the previous chapters, we have worked with regression models where the response variable is quantitative and normally distributed. Now, we turn our attention to models where the response variable is discrete and the error terms do not follow a normal distribution. Such models are called GLMs.

GLMs are extensions of traditional regression models that allow the mean to depend on the explanatory variables through a link function, and the response variable to be any member of a set of distributions called the exponential family (such as Binomial, Gaussian, Poisson, and others).

In R, to fit GLMs we can use the glm() function. The model is specified by giving a symbolic description of the linear predictor and a description ...

Get Regression Analysis with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.