Q3. Goodness of fit tests (Use trainData for this question)…
Q3. Goodness of fit tests (Use trainData for this question) (9 points) a.i (1 point) Can we perform goodness-of-fit tests for model2? Why or why not? ii. (1 point) If not, how can we modify the dataset to enable goodness-of-fit testing?iii. (5 points) Convert the dataset accordingly and fit a logistic regression model. Name it model3, and display its summary. b. (2 points) Use the Deviance residuals to form goodness-of-fit hypothesis tests on model3. What do you conclude from the result of the test?
Read Details