Understanding binomial logistic regression using R
Logistic regression is a statistical test that uses independent variables (categorical or numerical) to predict a categorical dependent variable. It is based on the principles of linear regression. As the outcome (dependent) variable is categorical, though, logistic regression computes the probability of this variable.
There are many methods of creating and testing the validity of a logistic regression model. In the link is a web page with an explanation of binomial logistic regression and how to use the R programming language to construct and understand your model.