In RStudio, run the following R code on the `mtcars` dataset: > cor(mtcars$mpg, mtcars$hp) > lm(mpg ~ hp, data=mtcars) What does the correlation coefficient and the slope of the regression line tell you about the relationship between mpg and hp?Single choice

Log in for full answers

We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

Similar Questions

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!