Question 6: Wine Data – Variable Selection (6a) 3 pts – Usin…
Question 6: Wine Data – Variable Selection (6a) 3 pts – Using wine_data_train, conduct a complete search to find the submodel with the smallest BIC. Fit this model. Include an intercept. Call it all_subsets_model. Display the summary table for the model. Note: Remember to set family to binomial. (6a.1) 0.5 pts – Which variables are in your all_subsets_model?(6a.2) 1 pt – What is the BIC of all_subsets_model? (6b) 3 pts – Conduct backward stepwise regression on wine_data_train using AIC. Allow the minimum model to be a logistic model with quality as the response variable and only an intercept, and the full model to be model3. Call it stepwise_model. Display the summary table for the model. Note: Remember to set family to binomial. (6b.1) 0.5 pts – Which variables are in your stepwise_model? (6b.2) 0.5 pts – What is the AIC of stepwise_model?
Read Details