Building two models
In chapter 2, you built a model to examine if the number of commute days impacted chance of riding the bus.
In chapter 3, you visualized if the distance a commuter traveled impacted the chance of riding the bus.
During this exercise, you will build both of these logistic regressions using the glm() function with the binomial family.
The bus data frame has been loaded for you.
Bu egzersiz, kursun bir parçasıdır
Generalized Linear Models in R
Egzersiz talimatları
- Build a logistic regression where
Busis predicted byCommuteDaysand save it asbus_days. - Build a logistic regression where
Busis predicted byMilesOneWayand save it asbus_miles.
Uygulamalı etkileşimli egzersiz
Bu egzersizi bu örnek kodu tamamlayarak deneyin.
# Build a logistic regression with Bus predicted by CommuteDays
___
# Build a logistic regression with Bus predicted by MilesOneWay
___