Question: Linear regression analysis - SAS code I want to build a simple linear regression for predicting mpg, attached the file below. (SAS Code preferred) (a)
Linear regression analysis - SAS code
- I want to build a simple linear regression for predicting mpg, attached the file below. (SAS Code preferred)


(a) Make scatterplots of mpg vs other variables (put all plots in one page). Based on these plots, choose one numerical variable that you think may be used effectively to predict mpg. (b) Fit a simple linear regression model and carry out regression diagnostics. The analysis should include an assessment of the degree to which the key regression assumptions are satisfied. Clearly state each assumption, the diagnostic tools used to check it, and the conclusion. (c) If an assumption is not met, attempt to remedy the situation. Explain the steps used to obtain the final model. Comment on the fit the final model using appropriate tests and statistics.A B C D E F G H 1 mpg cylinder displacement horsepower weight acceleration modelyear origin 2 18 8 307 W 130 3504 12 70 15 8 350 165 3693 11.5 70 4 1 UT 18 8 318 150 3436 11 70 16 8 304 150 3433 12 70 6 17 8 302 140 3449 10.5 70 15 8 429 198 4341 10 70 8 14 8 454 220 4354 9 70 9 14 8 440 215 4312 8.5 70 10 14 8 455 225 4425 10 11 70 15 8 390 190 3850 8.5 70 12 15 8 383 170 3563 10 70 13 14 8 340 160 3609 8 70 14 15 8 400 150 3761 9.5 70 15 14 8 455 225 3086 10 70 16 24 4 113 95 2372 15 70 17 22 W 198 95 2833 15.5 70 18 18 6 199 97 2774 15.5 70 19 21 6 200 85 2587 16 70 20 27 97 88 2130 14.5 70 21 26 4 97 46 1835 20.5 70 22 25 110 87 2672 17.5 NW 70 23 24 4 107 90 2430 14.5 70 24 25 104 NN 95 2375 17.5 70 25 26 121 113 2234 12.5 26 21 6 199 90 2648 15 70 ANN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
