3. The R-built in dataset called beaver2 (try ?beaver2) contains the variables temp (body temperature in °Celsius) and active (0 = inactive, 1 = active outside its retreat). Answers should be in the form of R code on how to accomplish each part and include the correct statistical explanation for those that require it in the question. The significance level for alpha =0.05. Please be as thorough as possible and please submit written explanations(no pictures). Thank you so much!!!
a. Convert temp to °Fahrenheit (I’ll call it tempF) for the remainder of this problem.
b. Build a logistic regression model to estimate the probability the beaver is active based on tempF. Plot the logistic regression curve in a scatterplot of active vs. tempF.
c. Interpret the slope of the regression equation.
d. If the beaver’s body temperature is 98.7°F, estimate the probability that it is active.
e. If the beaver’s body temperature is 99.7°F, estimate the probability that it is active.
3)
(a)-(e)
Get Answers For Free
Most questions answered within 1 hours.