source
Hosmer and Lemeshow, Applied Logistic Regression, Wiley, (1989).
Lemeshow, S., Teres, D., Avrunin, J. S., Pastides, H. (1988). Predicting
the Outcome of Intensive Care Unit Patients. Journal of the American
Statistical Association, 83, 348-356.