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.lm and finally, using the "summary" function, print the results as follows:
auto.lmlmmpg~horsepowerorigin
summaryautolm
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
