Question: We consider the Auto dataset that comes with the ISLR package in R. Load the data set with the command > df = ISLR:: Auto

 We consider the Auto dataset that comes with the ISLR package

We consider the Auto dataset that comes with the ISLR package in R. Load the data set with the command > df = ISLR:: Auto If you do not have the ISLR package installed, please use this line to do so > install.packages ("ISLR") Construct a linear regression model for mpg (miles per gallon) depending on horsepower, weight and year. Use your regression model to predict the miles per gallon value for a car built in the year 1978 with 112 PS and a weight of 4294 lbs (round on one digit). Answer: We consider the Auto dataset that comes with the ISLR package in R. Load the data set with the command > df = ISLR:: Auto If you do not have the ISLR package installed, please use this line to do so > install.packages ("ISLR") Construct a linear regression model for mpg (miles per gallon) depending on horsepower, weight and year. Use your regression model to predict the miles per gallon value for a car built in the year 1978 with 112 PS and a weight of 4294 lbs (round on one digit)

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 Databases Questions!