Logistic vs. probit
The coefficients obtained from the probit.model object looked familiar. So what is the actual difference to the logistic.model?
Next, you compare the coefficients of both models by using the function coef(). For a better comparison you bind the coefficient vectors together by using the function cbind().
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Building Response Models in R
คำแนะนำการฝึกหัด
- Obtain the model coefficients of the
probit.modeland thelogistic.modelusing the functioncoef()and compare them using the functioncbind().
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Compare the coefficients
___(coef(___), coef(___))