Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Mammal BrainWeights. (a) Draw a matrix of scatterplots for the mammal brain weig

ID: 3361438 • Letter: M

Question

Mammal BrainWeights. (a) Draw a matrix of scatterplots for the mammal brain weight data (Display 9.4) with all variables transformed to their logarithms (to reproduce Display 9.11) (b) Fit the multiple linear regression of log brain weight on log body weight, log gestation, and log litter size, to confirm the estimates in Display 9.15. (c) Draw a matrix of scatterplots as in (a) but with litter size on its natural scale (untransformed). Does the relationship between log brain weight and litter size appear to be any better or any worse (more like a straight line) than the relationship between log brain weight and log litter size?

Explanation / Answer

R code for above questions

rm(list=ls())
data=read.csv("E:\Chegg\data_mammals.csv")
head(data)

library(car)
#a)
new_data=cbind(log(data[,1]),log(data[,2]),log(data[,3]),log(data[,4]))
new_data=as.data.frame(new_data)
colnames(new_data)=colnames(data)
pairs(new_data[,4:1], pch = 19, upper.panel = NULL)
#b)
model=lm(Brain_Weight~Body_Weight+GestationPeriod+Litter_Size,data=new_data)
summary(model)
#c)
pairs(data[,4:1], pch = 19, upper.panel = NULL)

relationship between log brain weight and litter size appear to be any better or any worse (more like a straight line) than the relationship between log brain weight and log litter size

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote