glm class method on regression for Logistic and Poisson