Question

In: Statistics and Probability

Problem (7) With the rmr data set (ISwR package), plot metabolic rate versus body weight. Fit...

Problem (7) With the rmr data set (ISwR package), plot metabolic rate versus body weight. Fit a linear regression model to the relation. According to the fitted model, what is the predicted metabolic rate for a body weight of 80kg?

Solutions

Expert Solution

The R code is given below for this exercise. Let x = body weight and y = metabolic rate.

library(ISwR)
rmr
attach(rmr)
# PLOTTING BODY WEIGHT AS x AND METABOLIC RATE AS Y
plot(body.weight,metabolic.rate,main = "Plot of Metabolic Rate vs. Body Weight")
# THE LINEAR REGRESSION MODEL
md = lm(metabolic.rate ~ body.weight)
summary(md)


The plot of metabolic rate versus body weight is given below.


The summary of the linear regression model is given below.
Call:
lm(formula = metabolic.rate ~ body.weight)

Residuals:
Min 1Q Median 3Q Max
-245.74 -113.99 -32.05 104.96 484.81


Coefficients:
Estimate Std. Error t value Pr(>|t|)   

(Intercept) 811.2267 76.9755 10.539 2.29e-13 ***
body.weight 7.0595 0.9776 7.221 7.03e-09 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 157.9 on 42 degrees of freedom
Multiple R-squared: 0.5539, Adjusted R-squared: 0.5433
F-statistic: 52.15 on 1 and 42 DF, p-value: 7.025e-09

The linear regression model has come out to be: y = 811.2267 + (7.0595 * x).
Putting x = 80, we get y = 1375.987 kcal/24hr.


Related Solutions

Metabolic rate, the rate at which the body consumes energy, is important in studies of weight...
Metabolic rate, the rate at which the body consumes energy, is important in studies of weight gain, dieting, and exercise. The provided table gives data on the lean body mass and resting metabolic rate for 12 women and 7 men who are subjects in a study of dieting. Lean body mass, given in kilograms, is a person’s weight leaving out all fat. Metabolic rate is measured in kilocalories (Cal) burned per 24 hours, the same calories used to describe the...
******. The openintro package contains a data set called bdims, ****which consists of the body dimensions...
******. 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. ******** R code
Use R statictical software. Load the ISLR package to get the Auto data set. Fit below...
Use R statictical software. Load the ISLR package to get the Auto data set. Fit below non-linear models to the Auto data set. We will treat horsepower as the predictor and mpg as the response. • Fit the cubic spline with 3 knots (25th percentile, 50th percentile, and 75th percentile of horsepower) • Fit the natural spline with 3 knots (25th percentile, 50th percentile, and 75th percentile of horsepower) • Fit the smoothing spline by choosing optimal lambda with cross-validation....
1.) The file cats.csv contains a data set consisting of the body weight (in kilograms) and...
1.) The file cats.csv contains a data set consisting of the body weight (in kilograms) and heart weight (in grams) for 12 cats. Give the estimated regression line using the body weight as the predictor variable (x-variable) and the heart weight as the response variable (y-variable). Also, provide interpretations in terms of the problem for the slope and the y-intercept. 2.) The file cats.csv contains a data set consisting of the body weight (in kilograms) and heart weight (in grams)...
1.) The file cats.csv contains a data set consisting of the body weight (in kilograms) and...
1.) The file cats.csv contains a data set consisting of the body weight (in kilograms) and heart weight (in grams) for 12 cats. Test at the 5% significance level that a positive linear relationship exists between the body weight of cat and their mean heart weight. Provides all parts of the test including hypotheses, test statistic, p-value, decision, and interpretation. 2.) The file cats.csv contains a data set consisting of the body weight (in kilograms) and heart weight (in grams)...
A plot of detector signal versus ppm Ca2+ yielded a best fit straight line with a...
A plot of detector signal versus ppm Ca2+ yielded a best fit straight line with a slope of 1.38 volts/ppm. Multiple blank measurements resulted in a standard deviation of 0.18 volts. Using a 2:1 signal-to-noise ratio criteria, calculate the detection limit for Ca2+ in ppm when this method is employed. Thanks!
A plot of detector signal versus ppm Ca2+ yielded a best fit straight line with a...
A plot of detector signal versus ppm Ca2+ yielded a best fit straight line with a slope of 0.13 volts/ppm. Multiple blank measurements resulted in a standard deviation of 0.18 volts. Using a 2:1 signal-to-noise ratio criteria, calculate the detection limit for Ca2+ in ppm when this method is employed.
We have data on the lean body mass and resting metabolic rate for 12 women who...
We have data on the lean body mass and resting metabolic rate for 12 women who are subjects in a study of dieting. Lean body mass, given in kilograms, is a person's weight leaving out all fat. Metabolic rate, in calories burned per 24 hours, is the rate at which the body consumes energy. Mass (xx) 55.9 58.2 42.4 54.3 59.7 42.9 59.7 55.5 62.1 54.8 42.4 64.2 Rate (yy) 971.1 952.8 984.6 979.7 928.3 966.1 952.3 984.5 933.9 973.2...
We have data on the lean body mass and resting metabolic rate for 12 women who...
We have data on the lean body mass and resting metabolic rate for 12 women who are subjects in a study of dieting. Lean body mass, given in kilograms, is a person's weight leaving out all fat. Metabolic rate, in calories burned per 24 hours, is the rate at which the body consumes energy. Mass (xx)    62.7 48.6 51 55.8 46.4 62.9 45.9 59.7 48.2 55.6 64.4 63.8 Rate (yy)    841.3 904.4 903 892.2 887.6 880.1 914.1 893.3...
We have data on the lean body mass and resting metabolic rate for 10 women who...
We have data on the lean body mass and resting metabolic rate for 10 women who are subjects in a study of dieting. Lean body mass, given in kilograms, is a person's weight leaving out all fat. Metabolic rate, in calories burned per 24 hours, is the rate at which the body consumes energy. Body Mass values are: (30,14,42,22,38,40,46,15,56,24) Metabolic Rates: (767,623,1260,688,1152,1172,1356,599,1520,808) Find the least-squares regression line for predicting metabolic rate from body mass. What percentage of the variability in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT