Generating logistic regression models