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.
Este ejercicio forma parte del curso
Inference for Linear Regression in R
Instrucciones del ejercicio
- 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?
Ejercicio interactivo práctico
Prueba este ejercicio completando el código de muestra.
# Output the tidy model