Binary outcomes

Binary outcomes are outcome variables with only two possible values, e.g.:

To represent the binary outcome numerically, we must represent one level as 0 and the other as 1. The level that we represent as 1 is the level that we want the logistic regression model to estimate the probability/log-odds of.

For example:

Note: although both use 0s and 1s, binary outcomes are not the same thing as a treatment-coded predictor, and binary outcomes have no reference level.