Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need it in R-code. Thank you? 7. Consider the uswages data in the Faraway package. (20 Points) (a) Create a new predictor called region which

image text in transcribed

Need it in R-code. Thank you?

7. Consider the uswages data in the Faraway package. (20 Points) (a) Create a new predictor called region which takes values "NE", "MW","WE", and "SO", and summarizes the variables ne, mw, we, and so in the data set (b) Turn region into a factor variable with "NE" as the baseline. Fit the regression model with region as the predictor and wage as the outcome. Summarize the fit of the model and use an F-test to determine if region is significantly associated with wages (take a - 0.05). Take special care to interpret what each of the betas represents (c) Now use "SO" as the baseline and redo (b). Contrast the results. (d) Keep "SO" as the baseline. Now use an F-test to determine if region is still significant after correcting for education. Use ?-0.1 (e) Keep "SO" as the baseline. Now fit a model with eduction, region, and their interaction. Summarize of the fit of the model (paying attention to how to inter- pret the betas) and use an F-test to determine if the interaction effect is, overall, significant. (f) Plot the results from (e) by creating a scatter plot of wage vs education. Color code the points by region and plot the regression lines for each region (make sure the color of the regression line matches the color of the points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

What advice would you provide to Jennifer?

Answered: 1 week ago

Question

=+j Describe the various support services delivered by IHR.

Answered: 1 week ago