no longer need as.factor since it is designated after data import
change link function to logit

delete as.factor