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.
This exercise is part of the course
Inference for Linear Regression in R
Exercise instructions
- Run a linear regression on log
price
versus logbath
for theLAhomes
dataset, then tidy the output. - Look at the output. Is the relationship is positive or negative? Is relationship is significant?
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Output the tidy model