Question: This data set is from (Library: UsingR) Please show using R The data set fat (Library: UsingR) contains several body measurements that can be done

This data set is from (Library: UsingR)

Please show using R

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.

(a)Partition the data into 60% for training and 40% for testing. Use set.seed(25) before data partition.

(b)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.

(c)Use the stepAIC function to select a model. Report model summary and provide equation for this model.

(d)What are the top three contributors to the body-fat percentage? Provide an interpretation for these three coefficients.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!