Part 2– R work (must be done inR)
Copy and paste your R code and output into a word document,along with your written answers to the questions, and upload toCanvas. Â
Follow these instructions to import the necessarydataset:
Before opening the dataset needed for this problem, you’ll needto call the “carâ€package.  Run the followingline of code:
> library(car)
Now you can import the “Prestige†dataset and use it toanswer the question below. Name the data frame with your UTEID:
                       Â
> my_eid <- Prestige
Remember to include any code you use along with your answersin your submission!
ThePrestigedataset contains information about differentoccupations in Canada in 1971.  We want to see if theaverage years of education of the workforce (“educationâ€) canpredict an occupation’s annual income (“incomeâ€).
Make a scatterplot for this analysis.  Why is a linearregression not appropriate? (1pt)
Create a new variable in the dataset called “log_income†that isthe natural log of each income value. (1pt)
Conduct a full analysis to see if education can predictlog-income.  Include all steps for fullcredit.  Comment on any assumptions that might not bemet, but carry out the fulltest.   (4pt)