Chapter 6 Binary Logistic Regression

In this chapter, you will learn how to:

  • Write and interpret a binary logistic regression equation;
  • Compute and interpret odds and odds ratios (OR);
  • Estimate unadjusted and adjusted ORs using binary logistic regression;
  • Interpret the estimated regression coefficients;
  • Compute predicted probabilities from the model;
  • Test interactions between predictors;
  • Diagnose the fit of the model;
  • Appropriately summarize the methods and results for a binary logistic regression analysis;
  • Fit an ordinal logistic regression model;
  • Fit a conditional logistic regression model for matched data; and
  • Fit a log-binomial regression model to estimate a risk ratio (RR) or prevalence ratio (PR).

To use the code in this chapter, first load tidyverse and Functions_rmph.R (downloadable from RMPH Resources).

library(tidyverse)
source("Functions_rmph.R")