Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use R Programming: The mammalsleep dataset in the faraway package contains data from a 1976 study on correlates of sleep in mammals. The first
Please use R Programming:
The mammalsleep dataset in the faraway package contains data from a 1976 study on correlates of sleep in mammals. The first few rows of the data are shown below: ## body brain nondream dream sleep lifespan ## African . elephant 6654. 000 5712.0 NA NA 3.3 38.6 ## African. giant . pouched. rat 1. 000 6.6 5.3 2.0 8.3 4.5 ## Arctic. Fox 3.385 44.5 NA NA 12.5 14.0 ## Arctic. ground. squirrel 0.920 5.7 NA NA 16.5 NA ## Asian . elephant 2547 . 000 4603.0 2.1 1.8 3.9 69.0 ## Baboon 10.550 179.5 9.1 0.7 9.8 27.0 # # gestation predation exposure danger ## African. elephant 645 5 3 ## African. giant , pouched. rat 42 ## Arctic. Fox 60 ## Arctic.ground. squirrel 25 ## Asian . elephant 624 ## Baboon 180 i. The brain-to-body weight ratio was thought to be a good proxy measurement for animal intelli- gence; while this interpretation is fraught, the ratio is still an interesting correlate of physiological, metabolic, and other characteristics. Add the brain-to-body ratio as a new variable to the dataset named bb_ratio. Show only your code. ii. Make a scatterplot of the total hours of sleep per day against the brain body ratio. Show the plot, but not your code. Does it seem as if there is any relationship between the two quantities? If so, does it seem strong or weak? iii. Make a scatterplot of hours of sleep per day against maximum lifespan. Show the plot, but not your code. Does it seem as if there is any relationship? If so, does it seem strong or weak? iv. Fit a model with the brain body ratio and maximum lifespan as predictors of hours of sleep per day. Show the fit summary. v. According to the fitted model, do the average hours of sleep per day increase or decrease with lifespan? vi. If the estimates are to be believed, how much more or less would an animal sleep per day if they lived an additional ten years? Show either code or a written sketch of the calculation you performed. vii. According to the fitted model, how much does an average human sleep per day? Show either code or a written sketch of the calculation you performedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started