Question

The openintro package contains a data set called bdims, which consists of the body dimensions of...

The openintro package contains a data set called bdims, which consists of the body dimensions of 507 physically active individuals. Complete a full multivariate regression analysis, predicting the variable wgt (weight) using all significant elements. You should do a stepwise variable selection procedure, and explore the data.

Homework Answers

Answer #1

# Install the package
install.packages("openintro")
library(openintro)

# Data heading
head(bdims)

# Full model with all the covariates/independent variable
model<-lm(wgt~ ., data=bdims)
summary(model)

# From the out we see that many variables are non-significant

model2<-lm(wgt~ che.de + sho.gi+ che.gi+wai.gi+ hip.gi+ thi.gi+ for.gi+
kne.gi + cal.gi+ age+ hgt+ sex , data=bdims)
summary(model2)

# Histogram
hist(bdims$wgt)

hist(bdims$che.di)
hist(bdims$sho.gi)
hist(bdims$che.gi)
hist(bdims$wai.gi)
hist(bdims$hip.gi)
hist(bdims$thi.gi)
hist(bdims$for.gi)
hist(bdims$kne.gi)
hist(bdims$cal.gi)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
The data set (Canvas: body.csv) contains records of CHEST_DIAM, , CHEST_DEPTH, ANKLE_DIAM,WAIST_GIRTH, WRIST_GIRTH, WRIST_DIAM (all in...
The data set (Canvas: body.csv) contains records of CHEST_DIAM, , CHEST_DEPTH, ANKLE_DIAM,WAIST_GIRTH, WRIST_GIRTH, WRIST_DIAM (all in cm.), AGE (years), WEIGHT (kg.), HEIGHT (cm.), andGENDER (1=male) for 108 individuals. We will be looking for the best set of variables to (parsimoniously?) modelWEIGHT. Even though 6 explanatory variables only gives 29=512 possibilities for “all possible” regressions, we’lltry to be more methodical about it. ##question2 library(MASS) ## ## Attaching package: 'MASS' ## The following object is masked from 'package:olsrr': ## ##     cement body =...
Question 1: The following bivariate data set contains an outlier. x y 51.7 82.9 51.3 75...
Question 1: The following bivariate data set contains an outlier. x y 51.7 82.9 51.3 75 52.5 71.4 52.5 74.2 43.6 66.6 37.1 81.8 52.8 63.4 58.4 59.8 61.7 49 35.9 79.9 62.7 76.6 43.4 69.3 35.5 86.9 50.6 57.3 144.3 200.6 What is the correlation coefficient with the outlier? rw =   What is the correlation coefficient without the outlier? rwo =   Would inclusion of the outlier change the evidence for or against a significant linear correlation at 5% significance?...
read Seasons of Love chapter:measuring a child's life after suicide. please answer the questions : reflect...
read Seasons of Love chapter:measuring a child's life after suicide. please answer the questions : reflect on what happens to the families when there is a suicide in the family, based on the Seasons of Love chapter...how should people be told? What details are best left unshared? below is the story These theories may have a certain face-validity, but they often neglect environmental or contextual factors that are innate to answering the question of “why” a person might engage in...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...