For the horseshoe crab dataset, Exercise 5.32 used logistic regression to model the probability that a female

Question:

For the horseshoe crab dataset, Exercise 5.32 used logistic regression to model the probability that a female crab has at least one male satellite. Plot these binary response data against the crab’s carapace width. Also plot a curve based on smoothing the data using a kernel smoother or a generalized additive model, assuming a binomial response and logit link. (This curve shows a roughly increasing trend and is more informative than viewing the binary data alone.)

Step by Step Answer:

Question Posted: