A study of single- and multi-level logistic regression models using real and computer simulated data