8.8 Logistic Regression

  • Logistic regression can be used to explore the relationship between a binary response variable and an explanatory variable while other variables are held constant.

  • Binary response variables have two levels (yes/no, lived/died, pass/fail, malignant/benign).

  • As with linear regression, we can use the visreg package to visualize these relationships.