Q3. Goodness of fit tests (Use trainData for this question)…
Q3. Goodness of fit tests (Use trainData for this question) (12 points) a.i (1 point) State why we cannot perform goodness-of-fit (GOF) tests for model2. ii. (1 point) Describe how we can modify the dataset to enable goodness-of-fit testing. Provide a general approach. iii. ( 5 points) Convert the dataset accordingly and fit a logistic regression model. Name it ‘model3’, and display its summary. Note: Use the same predictors as used for model2. 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? c. (3 points) Compare the summary of model2 and model3. What changes do you observe? Explain.
Read Details