Import from the data set Phillies2009 the data on the Philadelphia Phillies baseball team.
(a) Find the logistic equation modeling the log-odds of the team winning (Outcome) against the number of hits in a game (Hits). (R will automatically convert Lose to 0 and Win to 1).
(b) Interpret the slope of the equation (in terms of odds).
(c) Find a 95% bootstrap percentile interval for the slope.
(d) Predict the probability of winning if the team has 17 hits and then find a 95% bootstrap percentile interval.
(e) For inference, we need to assume that the observations are independent. Is that condition met here?