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

LA Homes, multicollinearity (2)

Repeat the previous exercise, but this time regress the log transformed variable price on the new variable bath which records the number of bathrooms in a home.

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

Inference for Linear Regression in R

ดูคอร์ส

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

  • Run a linear regression on log price versus log bath for the LAhomes dataset, then tidy the output.
  • Look at the output. Is the relationship is positive or negative? Is relationship is significant?

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

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

# Output the tidy model
แก้ไขและรันโค้ด