Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Inference for Linear Regression in R

Cursus bekijken

Oefeninstructies

  • 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?

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Output the tidy model
Code bewerken en uitvoeren