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.
Latihan ini adalah bagian dari kursus
Inference for Linear Regression in R
Petunjuk latihan
- Run a linear regression on log
priceversus logbathfor theLAhomesdataset, then tidy the output. - Look at the output. Is the relationship is positive or negative? Is relationship is significant?
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Output the tidy model