Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

THIS IS AN R ASSIGNMENT PLEASE DO IN R CODE ONLY THANKS!!! I REALLY NEED HELP PLEASE PART 2 (25 points) The data set fat

THIS IS AN R ASSIGNMENT PLEASE DO IN R CODE ONLY THANKS!!!

I REALLY NEED HELP PLEASE

PART 2 (25 points)

The data set fat (Library: UsingR) contains several body measurements that can be done using a scale and a tape measure. These can be used to predict the body-fat percentage (body.fat). Measuring body fat requires a special apparatus; if our resulting model fits well, we have a low-cost alternative.

  1. Partition the data into 60% for training and 40% for testing. Use set.seed(25) before data partition.
  2. Use training data to develop a multiple linear regression model with body.fat as response variable and age, weight, height, BMI, neck, chest, abdomen, hip, thigh, knee, ankle, bicep, forearm, and wrist as independent variables.
  3. Use the stepAIC function to select a model. Report model summary and provide equation for this model.
  4. What are the top three contributors to the body-fat percentage? Provide an interpretation for these three coefficients.
  5. Develop a scatter plot for predicted and fitted response values using the testing data. Obtain R2 using testing data based on predicted and fitted response values?

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_2

Step: 3

blur-text-image_3

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

Algebra And Number Theory An Integrated Approach

Authors: Martyn R Dixon, Leonid A Kurdachenko, Igor Ya Subbotin

1st Edition

0470640537, 9780470640531

More Books

Students also viewed these Mathematics questions

Question

Briefly summarize the monthly events of fetal development.

Answered: 1 week ago