ABSTRACT

The simplest way to begin understanding logistic regression is to apply it to a single binary predictor. That is, the model we shall use will consist of a binary (0,1) response variable, y, and a binary (0,1) predictor, x. In addition, the data set we define will have 9 observations. Recall from linear regression that a response and predictor are paired when setting up a regression. Using R we assign various 1s and 0s to each y and x.