Logistic regression seems correct by solving misdefining binary varible r in the iteration. eta is set to 0.21 by a naive try. Data file liver seems inconsistant.