Question: please help with R program LeMahieu 0.327 61 312 0.893 1.95 Urshela 0.314 55 236 0.889 3.48 Torres 0.278 64 292 0.871 2.64 Judge 0.272


Save this file in your working directory, and assign it to batters in R. 1. [5 points] Use R to construct scatterplots for all pairs of attributes. (As there are five attributes, you will create a total of ten scatterplots.) Among this set of plots, choose the one that best displays linear correlation, and paste only that scatterplot below. In a sentence or two, justify your attribute pair selection. 2. [10 points) For the attribute pair you selected in Problem 1, construct the linear model using the Im command, provide a summary of values using the summary command, and draw the regression line on top of your scatterplot using the abline command. Give all R code and output, including the new plot containing both the points and the regression line, below. 3. [10 points Suppose now that you wish to introduce a third attribute, and provide a multiple linear regression model that pairs the new attribute with the two attributes for which you provided a simple linear regression model. Which attribute will you choose as your third, and why? Justify your choice in a sentence or two. Use the Im and summary commands to construct the new linear model, and to list a summary of values. Provide all R code and output below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
