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

Model comparison

To be able to interpret the price.ratio coefficient of the probit.model you calculate its effect of an average unit change on the latent propensity by using the function margins(). You check if the effect for the probit.model might be different by calling the function margins() again on the logistic.model object.

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

Building Response Models in R

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Obtain the marginal effect for price.ratio of the logistic.model by using the function margins().
  • Obtain the marginal effect for price.ratio of the probit.model by using the function margins().

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

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

# Logistic model


# Probit model
แก้ไขและรันโค้ด