Question: Using the lm function, build a multiple regression model with mpg as the response and horsepower and origin as the predictors,

Using the "lm" function, build a multiple regression model with "mpg" as the response and "horsepower" and "origin" as the predictors, store the results in an object called "auto.lm3", and finally, using the "summary" function, print the results as follows:
auto.lm3=lm(mpg~horsepower+origin)
summary(auto.lm3)
Find the coefficient of determination of the regression model. Give your answer in four decimal places.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!