Part 2– R work (must be done in R) Copy and paste your R code and output...

90.2K

Verified Solution

Question

Basic Math

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)

Answer & Explanation Solved by verified expert
3.7 Ratings (671 Votes)
    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students