Generalized linear models

In the previous part, we focused on linear models, which expect continuous outcomes. In many scenarios, however, we would like to model binary outcomes, such as having/not having lung cancer. In this part, we describe a model that can take such outcomes, namely logistic regression. After that, we introduct a large class of models called generalized linear models, which includes linear and logistic regression as special cases.