Section 9.2 Learning Objectives
By the end of this chapter, you will be able to:
-
Explain when logistic regression is appropriate and how it differs from linear regression
-
Interpret probabilities, odds, log-odds, and odds ratios in the context of binary outcomes
-
Perform exploratory data analysis for a binary response variable, including calculating proportions and odds
-
Visualize relationships between a binary outcome and predictor variables
-
Split data into training and testing sets for predictive modeling
-
Fit a logistic regression model using
glm()with a binomial family -
Interpret logistic regression coefficients and convert them to odds ratios using
exp() -
Assess model fit using McFaddenβs pseudo-RΒ²
-
Evaluate predictor importance and check for multicollinearity using VIF
-
Generate predicted probabilities and classifications from a fitted model
-
Evaluate classification performance using confusion matrices, sensitivity, specificity, and balanced accuracy
-
Assess model discrimination using ROC curves and the Area Under the Curve (AUC)
