Companion code for the didata 'Insight' article entitled "Logistic Regression: Machine Learning for Binary Classification", which is located here: http://didata.us/2014/06/11/logistic-regression-machine-learning