Maximum entropy, logistic regression, and species abundance