Complete logistic regression example