Session Ready
Exercise

Fitting probits and logits

During this exercise, you will fit a probit and logit model to the Pittsburgh bus data. There are multiple purposes for this and the following exercises:

  • Learning how to change link functions.
  • Learning to notice differences and similarities between using the logit and probit models.
  • Learning how the link functions differ in code.

First, let's code some models! Then, you'll examine the outputs.

Instructions 1/4
undefined XP
  • 1
  • 2
  • 3
  • 4
  • Using the data.frame bus, fit a logistic regression to predict Bus using CommuteDays. Save this as bus_logit.
  • Make sure you specify the link option to be "logit" inside of the binomial() family.