เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Generalized Linear Models in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Fit a GLM with a logit link and save it as bus_logit
bus_logit <- ___
แก้ไขและรันโค้ด