The R library faraway contains the pimadataset. We will fit a model with test as aresponse and bmi (only) as a predictor to see therelationship between the odds of a patient showing signs ofdiabetes and his/her bmi. The odds o and probability p are relatedby:
o = p/(1-p), p = o(1+o)
Using the GLM function:
a. Please estimate the amount of increase in the log(odds) whenthe bmi increases by 10.
b. Give a 95% CI for the estimate.