Question: #Use the Rcode below to perform forward, backward, and bi-directional stepwise #regression using the pima data set. Provide a paragraph summarizing the results. #Multiple Logistic

#Use the Rcode below to perform forward, backward, and bi-directional stepwise #regression using the pima data set. Provide a paragraph summarizing the results. #Multiple Logistic Regression in R library(faraway) library(StepReg) logistic = glm(test ~ age + bmi + diastolic + diabetes + glucose + insulin + pregnant + triceps, family=binomial(logit),data=pima) summary(logistic) anova(logistic) y = "test" stepwiselogit(data=pima,y, exclude = NULL, include = NULL, selection = "forward", select = "AIC", sle = 0.15, sls = 0.15) stepwiselogit(data=pima,y, exclude = NULL, include = NULL, selection = "backward", select = "AIC", sle = 0.15, sls = 0.15) stepwiselogit(data=pima,y, exclude = NULL, include = NULL, selection = "bidirection", select = "AIC", sle = 0.15, sls = 0.15)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
