Estimation and prediction with logistic regression