why use glm in r?
glm() is the function that tells R to run a generalized linear model. Inside the parentheses we give R important information about the model. To the left of the ~ is the dependent variable: success. ... The default link function in glm for a binomial outcome variable is the logit.