Everyday R code (8) logistic regression
# we have a data set with all numeric variables (some of the columns only have 0 or 1). And we want to run a logistic regression model. First we checked correlation and exclude the variables which has high correlation (remove one and keep the other). COR<-cor(Answered_data2) data<-subset(data,select=-c(A,C,D,AA,CC)) #we need to run correlation multiple times … Read more