Fit a model to predict bill length from bill depth with # different intercepts and slopes based
Question:
Fit a model to predict bill length from bill depth with # different intercepts and slopes based on species for the palmerpenguins data
What is the estimated intercept term for Adelie penguins? Save your answer in the variable q4.a
What is the estimated intercept term for Gentoo penguins? Save your answer in the variable q4.b
What is the estimated slope term for Adelie penguins? # Save your answer in the variable q4.c
What is the estimated slope term for Chinstrap penguins? # Save your answer in the variable q4.d
What is the expected bill length for a Gentoo # penguin with a bill depth of 15mm? # Save your answer in the variable q4.e
Construct a 80% prediction interval for the # bill length of a Chinstrap penguin with a bill depth of 20mm. # Save your answer in the variable q4.f # Your answer should be formatted as c(lowerbound,upperbound)
Construct a 90% confidence interval for the average # bill length of an Adelie penguin with a bill depth of 17mm # Save your answer in the variable q4.g # Your answer should be formatted as c(lowerbound,upperbound) q4.g<-NA